move static file serving above logging
move perms file to ./priv (should go in db, eventually)
chimney, possible tw fix
chimney, scope fixes