loading application with middleware and a little cleanup

added ability to load object-server app with the configured
pipeline. Also changed the code to not call PUT directly, but
let the application handle the request in the right sequence

Change-Id: I64b236c6820f60466b6391102e71f74022d6b3ca
Signed-off-by: Thiago da Silva <thiago@redhat.com>
removed log

Change-Id: I8a8d830601a954c62a10f841c1c4626287b3d222
Signed-off-by: Thiago da Silva <thiago@redhat.com>