added a gunicorn restart to the deploy script, fixed the functional test
organizing tests into separate files
further tests reorg