Added missing semicolon
Another missing semicolon
Made main.php handle exceptions
Replaced all PEAR errors with PHP exceptions in Loris
Updated TimePoint to pass PHPCS