 				else ""
 
 		# Takes a "raw" context object and orders it into the internal _context
-		# storage.  Also builds constructors and prototypes for the context.
+		# storage. Also builds constructors and prototypes for the context.
 		_set_context = (context, protos) =>
 			# Save the attributes
-			_.extend ec._context.attributes, context.attributes
+			_.extend @_context.attributes, context.attributes
 
 			# Prepare each entity. Uses _.each to put (definition, type) in a closure.
-			_.each context.entities, (definition, type) ->
+			_.each context.entities, (definition, type) => # NO SERIOUSLY, definition MUST BE IN A CLOSURE!
 				# Keep the definition locally, modifying it directly with the ctor and prototypes.
-				ec._context.entities[type] = definition
+				@_context.entities[type] = definition
 				# Ready the instances bucket
-				ec._instances[type] = {}
+				@_instances[type] = {}
 
 				# Build an entity's constructor.
 				definition.Constructor = (proto) ->


			for _spec in spec
				#Add the queries
				_type = (_spec._type instanceof Function) && _spec._type() || _spec._type
				def = @definition(_type)
				id = _spec[def.key]



				# Get this entity's ID.
				id: (full) ->
					return (if full then "#{@_type()}/" else "") + @[definition.key]()

				# Find the status of an entity.
				_status: () ->
