extract server db factory

also, add a test
use db user from env instead of hardcoding
geo db setup
provide an interface to save geo and user info to db
use geomodel + in memory store
replace mock implementation & refactor test
geo.save returns nearest 10 users within 1K radius
update geo data if user id already exists
add server test for /register
expose /location endpoint on server
successful login sets cookie
prevent unauthenticated post to /location
make cookie salt an env variable
remove unused geo modules
pages/apps -> pages/search
db module exposes user ID
client uploads geo and user info to server on search
do not parse geo search error
succesful register also sets user cookie
display search results