Export both the application and the session when available for the task.

Fix issue with filtering the non-finished tasks.
Make it JDK 1.6 so that it is the same as Wicket 6.x.
Remove annoying whitespaces all around :-)
Merge pull request #1 from martin-g/master

Export both the application and the session when available for the task.