Factored out deployment to another repo;  Reorganised static files;  Began to move dao code into separate functions.