build: several build simplifications

Closes #4
build: use the 'hsp' framework for Karma

Closes #6