Removed brackets from require and include statements

As per Sonar advice IncludingFileBracketsNotRequired
Replaceed a die() with exception

For better testability
Removed erronous comparison

Removed a pointless check that checks if $key is zero, that didn't work
and above that, $key is never zero at that point.
Cleanup of cli unittest

Cleanup / Refactor of CLI UnitTest, that also makes it more robust in
case of an interrupted test run.
Changed self-references in objects to use self::

There were several cases where self references inside objects used
objectname::method() syntax instead of self::method()
Finalizing refactor of album class

- Changed all functions to camelCase
- Added public/private to all functions that did not yet have them
- moved is_root() to zophTreeTable->isRoot() (also for category and
place)
- Added docblocks to the functions that did not yet have them
- Moved glabal functions to static functions
- Removed unused function get_indented_name()

- Corrected indentation for notify.php
Moved getRoot() into zophTreeTable

The magic of PHP 5.3 allowed me to move 3 separate getRoot() functions
into one.
Removed unused class smtp
Made autoload a little more robust
Changes to autoload so it works in unittests too.
Movedd global function get_category_count() to static
Refactor album, category, person, place

Updated album, category, person, place classes:
- Added scope identifiers [public|private|protected] to the functions
that were still missing them
- Changed functions names to camelCase
- Changed global functions to static functions
- Added docblocks
Move album, category, place and person into classes directory

Now all global functions have been removed from these files, these
classes can be autoloaded and removed from the include.inc.php file.

zophTable and zophTreeTable did not have any global functions anymore
either, so they have been removed from the include.inc.php file as well

anonymousUser also included an include line for zophTreeTable, this has
been removed as well
Category: fixed wrong return

getPhotoCount() would return an empty variable instead of the photocount
Whitespace corrections

Made many whitespace (indentation) corrections.