Added getter and setter to protected section of AMDatamanAppController to allow access to defaultUseLocalStorage_ member variable. Also removed some commented out code and made some updates based on comments by @dretrex in the pull request.
Removed some commented out code.