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