Major refactoring

Implemented a RESTful mockup for OpenRegistry, and rationalized the
interdependencies between the registry, OpenIDM and the guest
application, as per the conversation we had on 4/17.