Refactored the whole thing. Have no idea if it became more readable.

I don't think it is possible to implement the initial idea in the scope of Play Framework. Did some refactoring, though...