Added basic message type and tests. Enhanced build script a little.