Added some Commonjs policies, like AMD and the use of promises. Also updated the ORM abstraction layer.
Updated the generic fields javascript library.