Clean-up and new exceptions

Cleaned up the code in josync.py and added some specific exceptions to utils.py.
Merge branch 'release_1.0' of github.com:jeinarsson/josync into release_1.0