Move JSON routines into server.py
Send solutions as entire grids instead of path arrays