Refactor including javascript.
Merge remote-tracking branch 'origin/master'

Conflicts:
	assets/js/tournaments_add.js