moved controller to new file
added saving of beats to server
Merge branch 'reorganizing'

Conflicts:
	app/index.html
	app/scripts/app.js