Adding a client-side "server" service 

+ fixing some code broken by the move from firebase.