Fixed field attr_writer, added to_h to SpriteComponent
MapEditor can now change active layer using 1, 2 and 0 (reset), e enters edit mode, v enters view mode.

Still need to add the passage editor, I'll go generate some more blocks for this.
Merge branch 'master' of github.com:IceDragon200/es-moon

Conflicts:
	entity.rb