Shift token to conf/context.xml instead of including in war file.
Fix bug where webDataDir is not initialised when private final fields are initialised.
Correct URL generation of last uploaded file.