Adding profile manager spec

* Finishing rabbit spec
* Adding profile manager spec
*refactored profile manager