Updated cluster API, support for multiple slaves

* Updated Cluster API to include node objects and multiple slaves.
* Simplified _create_cluster()
* Included a flush_data_to_mongo() function to update cluster
document in mongo
* Updated cluster_test script as per the new API format

Signed-off-by: Shashank Sahni <shredder12@gmail.com>