Bugsnag and application interfaces

Added bugsnag error monitoring for php errors and implemented application interfaces instead of extending of the base application