AMD RequireJS support

tested under backbone 1.0 and mongolab api.