Sever side code

About two thirds into building this side, now cashes the data to stop
bugs and should run smoothly with the pi side