Add main front controller files

Here are the front end files. Combined with the Entity PR, the front end is working :)
I think there could be 2 files: 1 for html and 2 for bbcode.