Canvas layer abstraction library.
Merge pull request #81 from cantsin/layers-canonical

Canvas layer abstraction library.
Tileset coordinate cleanups.
Put collision functions in its own file.