adding setup command for ApiBundle
there was no way to setup the platforms without getting errors, so i
created a setup command which can be performed after fresh install.
cleanup
a lot of whitespace and some documentation