OZP-16: Factored out the SwitcherTile model and added unit tests for Tiles.js