Issue 18

Change resources from a JS Array to Map, w/ backwards compatibility.

Makes resources and models the same
done!