State packet deserialisation done; added unit test; added Travis CI config [fixes #7]