Fixed possible security issue - I'm not sure it is one, but I want to be safe.
Used pluginlibrary for settings - Just a cleanup
Use pluginlibrary for templates - Just a cleanup I wanted to make
Use pluginlibrary for css - Allows for custom CSS on each theme instead of using a hardcoded CSS file

The file needs more cleaning, but I'm wiped, so that will have to wait.