Configuration updates.

* Added command syntax. Added global a option for the JSON file.
Handle empty files and added helper functions to read and write WorkLists.