Add open_and_lock context manager for file
Removed unused import, made clearer some imports.
Renamed `open_and_lock` to `open_with_lock`
Merge pull request #31 from MarcCote/add_lock_contextmanager

Add a simple but efficient lock contextmanager
Added .gitignore
Added command manager to handle command files.
Tiny refactor so it's pep8 compliant.
Added step 1 for the running/resume feature.

See #24
Made a proper CommandManager, updated tests and script.
Updating and integrating CommandManager.

Added the set_commands_to_run function to CommandManager.
Added test for above function.
Updated test in test_smart_worker.py so it will use CommandManager.
smart_dispatch.py now use CommandManager.
Changed the way empty command file is handled.
Better handling of the way the commands are stored.
Fixed a test in test_command_manager
Merge pull request #36 from mgermain/resume

First step of the resume feature from #24.
Added small utils function to handle json