Change logic to be API call.
Merge remote-tracking branch 'origin/master'

Conflicts:
	app.py
	templates/admin/contest/contest.html
	templates/admin/layout.html
	templates/admin/role/roles.html
Test angular.