Unit tests and new token system

This merge adds in some unit tests (and a directory for them), as well as creating a token namespace (and a separate file for it) that uses Java's UUID system for new tokens.