Added some structure to the main app. Moved routes into more sensible locations. Added tests for filters.