Add a possibility to add objects to the map, emitting events.

Next steps: Write tests for it, think about TMX’ `type' attribute
for objects.