added server REST servcies
finally connect the frontend to the backend, now I'm going to have a cigarette
last minute fixes and prettying up the code