Added test requirements, simplified init.py to have an app attribute used by various python files for accessing context, set up routes in web.py