reworked build to work better with node

- stopped building the server-side production code
- normalized the nodify require for browser-side support
fixed issued with require in tests
initial attempt at including npm modules in the client
only load scripts if client/server builds exist