map_editor: red: read tileset gfx filenames from source
script commands wildon and wildoff got mixed up

this was a mistake in the original pksv spec and tauwasser's notes
rename bit1/bit2 script commands to event/flag
use config instead of configuration

this was kind of overzealous
tabs to spaces (pep8)
minor formatting fix
put the tk loop into __main__
refactor a global constant to be set in __init__
Merge pull request #38 from kanzure/importable-map-editor

Importable map editor
Revert "tabs to spaces (pep8)"

This reverts commit 9bea14db798eedcb262d17562a37b1f337fb67eb.

Conflicts:
	pokemontools/map_editor.py
map_editor: more flexible macro handling

makes less assumptions about the structure of a header
map_editor: skip any nonexistent tiles in map rendering
map_editor: create any pngs that don't exist yet
crystal.py: no more relative paths
Merge branch 'yenatch/map-editor' into master

Conflicts:
	pokemontools/crystal.py

Fixes #40.
fix crystal.py configuration

Ugh, it's still a global?
fix configuration typo
Merge pull request #41 from kanzure/fix-crystal-config

Fix crystal.py configuration
if_greater_than and if_less_than commands were swapped
fix up the last few event scirpt commands