More update.

Introduced the exposing apim, this is a restful layer.

TODO: Integrate the xsd with java, so instead of making classes manually
they are automatically generated.