[WIP] Split image.pp into image/api.pp and image/registry.pp

Since the Glance API and the Glance Registry might be setup
in two differents server we need to be able to handle this situation.

Related to #346