lots of refactoring using model.js

	modified:   assets/js/transit.js
	modified:   assets/js/transit/api.js
	modified:   assets/js/transit/maps.js
	modified:   assets/js/transit/model.js
	modified:   assets/js/transit/ui.js
	modified:   assets/js/transit/utils.js