store/retrieve topology spec in mongo

use monger and cheshire for mongo client and json encoding