Implement some of the straightforward data types and functions

This is not ready to merge yet -- doing the pull requests to get automatic builds on Travis.