Non mvc version

refactoring app to become webapi only