#396 Enabled Oauth API security and added basic support for mocking oauth calls in controller tests