new wrapper for AMD support; tested using browser tests
new wrapper for AMD support; not tested (assumed working)
wrapper fix
fix exports in new module wrapper
leaked global fix
Merge branch 'master' into amd-support
wrap more modules
fix circular dependency issue when loading via requirejs
nodejs test server
Minor code style cleanup/consistency fixes.
Update module wrapper and related code.

- Simplify module wrapper.
- Using dependency injection and some manual checking to avoid
  cyclical dependency issues.
- When requiring any module, except the main 'forge' module, the
  exported API is now a function that can be called with no
  parameters or a single param to attach the API to.
- Code style clean ups.
- All tests pass, including client-side PhantomJS-based tests.