Estranged political allies Bharatiya Janata Party (BJP) and Shiv Sena appear to have reached an agreement on sharing power in Maharashtra.