New build process

Using requireJS to concatenate modules and eventually lead to a uniform build process for server and client versions.

This was needed to use a constructor function pattern too, so the base of the library can be called.