Fix #007. Also, implement Patient tests.
Fix #006

Implemented /compose/apis REST endpoint with basic tests.