Initial import
Adding registry unit test
Adding scrutinizer and travis configs. Improving docblocks and general cleanup.