npm + xtuple-server + node 0.10

FIXES
- fixed emlprofile_id_seq issue
- fixed Sales order workspace test race condition
- increased Sales Order workspace test timeout
- fixed occasional XT.log error in unit tests

NEW
- support node 0.10
- package xtuple as npm module
- build using xtuple-server


QUESTIONS
- all the login assets seemed to have been deleted, causing my builds to fail. I had to add them back. what does this pertain to?
- up to date on 4_6_x. Not sure where styling changes are coming from.
- removed shrinkwrap file. seems not very necessary in current stable node versions. maybe we should keep it, I'm ambivalent now
this is a less perfect and more readable version of the function it replaces