Feature/Snippets API

Snippets API functionality.
Some general rejiggering.
Mockito introduction