refactored app to use and application factory; removed DebugToolbar due to being incompatible with application factories; created example tests