Added some error checking to variables
Moved template file to be in line with .html convention; added MethodNotAllowed response and exception
Removed user checking from script tag check

Striking through user's script permission
Merge branch '1.8.x' of github.com:AppStateESS/phpwebsite into 1.8.x
Merge branch '1.8.x'
fixed call to unknown icon