Moves background geolocation code to login controller so that it has access to user's id
Fixes server to only save home and/or work locations if home and/or work addresses given