Api ips utest 613

Major changes:
- Refactoring of app.js into brixapp.js  lib/webservice.js and test/testapp.
- The sequenceNodeIdentifier is Object for all functions (originally in some were string). 

Also minor cosmetic improvements.