Move mobile controller code into a module
Extract ApplicationController authorization and authentication into modules