Add REST API.

* Add requirement for Cornice.
* Add REST resources for buildouts, hosts and packages.
* Add new methods for getting data as dict from modules.