Document; return error string on SQL failure

+ Add documentation using doxygen standards
+ an SQL failure in `executeSql()` will return the error and not false
invert if statement
Add entry points; format; rm surplus files

* Add entry point checks
* Add `upload.php` as an entry point
* Format in line with style guide
* Remove `includes/defaultSettings.php` as it was unused