Created tile factory class for creating new tiles

Refactored main class as well so that it handles tiles more dynamically
Merge branch 'master' of https://github.com/Tvli/dashboard

Conflicts:
	main.rb