Set environment as property of app so it can be checked in providers.

Log errors no matter if $app['debug'] is set.
Add DocBlocks.
Don't register loggly handler if on develop.
Use stream handler and Exception Line Formatter.