refactored a lot of stuff
moved web app front end to public directory