More work on adding a Z axis.

Also changed world parsing to make sure things outside the grid don't
get in.
Revamped movement code.
Reworked most of how world formats are saved

Also reformatted long if statements, I think it looks better this way.