Restructure

Moved all Front end code to assets and backed code to php