Added interface and some basic tests for some of the operations used by skewd/core.