Added the working app and startedthe refactoring process

This is nowhere near working yet.