Issue 18

Change resources from a JS Array to Map, w/ backwards compatibility.

Makes resources and models the same
You can actually omit the "v match" part and just write
resources.fields.map {   
  case(modelName, value) => InternalResource(Some(modelName), models, value.as[JsObject])
}