Added rspec tests, map parser parses ownership (but not well).

Perhaps a change in the format is needed.
Added basic .gitignore.
New version of state format, and corresponding changes.

v0.3.1
Changed file to unix-style endings.
Final fixes to state parsing and dumping, added graph tests.

Dammit. v0.3.2.

Two small versions in the same day! I must be more careful. :)