Make profiler work on Grails 2.4

 In the process, move the page filter profiling code out into separate java module,
 as it doesn't compile on Grails 2.4. No solution for profiling layouts in Grails 2.4
 yet.