Simplify ncs scripts.

* ncs is now a module that is to be imported for use. It has no main
function.

* Added a unit test & an example user script