move views out and prepare for uWSGI