Create proper project structure and fix templates

This pull request should add a better project structure and should fix some of the crazy issues in the templates resulting from improperly nested divs.