Implemented some methods for reuse to simplify things.
Merge branch 'master' into wip/h3nk3-reuse-js

Conflicts:
	ui/app/controllers/Application.scala