Fixes for urlrewritefilter and html5 history routing