Converted tests over to NUnit

In order to start running iOS and Android tests. Also compacted domain
layer a bit.