Session controller rewritten to coffee