Dev

Working with Mark's contributions. 

Still to do is serialize sets.

http://stackoverflow.com/questions/8230315/python-sets-are-not-json-serializable