Started using Log

Using the logger in cloud, apiloader and startup.
Also fixed minor issues in cloud