change structure / add app engine support

changed the structure so that it would work for both running locally
and on app engine, started work on the app engine file