Added tests for the user controller.
Added proof of concept for returning a stack trace to the client on a controller error. Enabled long stack traces on dev.