Import code from Play2 rev 676d4335acd8392ed846ae0425e88c02a2b4058e
Convert line delimiters
Add logs
Lower log level to TRACE
No more Play logger, use std println