Convert Timer to TypeScript (in progress)

Conflicts:
	src/flash.ts/utils/Timer.ts
Fix merge conflicts