Refactor: ApplicationController

Extracted some private methods and restructure the conditional for #store_location
Merge pull request #191 from cored/application-controller

Refactor: ApplicationController
Merge branch 'develop' of https://github.com/tansaku/LocalSupport into js_reconfig