Issue 18

Change resources from a JS Array to Map, w/ backwards compatibility.

Makes resources and models the same
It would be nice if we had a way to communicate this to people who are still using the array syntax.