Refactor ApplicationService to use localStorage
Adds url_for to fix.