Patched up some code in State.py, added unit tests for existing State.py functionality, and fixed up some packaging for utilities.