refactored library to implement compact protocol and added unit testing suite
updated readme to mention incompatibility between v1.1.0 and v2.0.0
Merge pull request #2 from achingbrain/master

Library refactor, implemented compact protocol and added test suite