Introduce model pattern.

Conflicts:
	js/app.js