First commit of the process of making the script object oriented.
This commit is not a working version of the script, so please check out
master branch in the meanwhile.
Another commit in the way to objet orientation.

This commit moved the last synchronization time loading and saving out of
the class and into the command line script. The new settings model (using
an array instead of constants) is implemented as well.

The error handling that was working by return codes is now working with
Exceptions.

This code is not yet functional, all the other functions in the class need
to be adjusted and reworked.
Finishing implementing the object oriented approach. Getting ready for
testing the new changes.
Some general errors were corrected.

The script is tested and some general PHP parse errors and some logic
errors are corrected. Once the tests are completed and the documentation
changed the changes will be merged to the the master branch.
Update the README.md file

The README.md file gets updated to include documentation for the new object-oriented structure and how to use the class within an application.