Test backbone

Use mocha/testling for testing front code; migrate a lot of js over to the new style.

Admin now broken- but work on this will continue on another branch.