Sorting and grouping of graphs in a report

Add a new tab in report configuration to let the user sort grpahs and
put them into categories. It uses sortable from jquery-ui.
fix redirection after login to avoid losing parameters