Fixes broken redirects on trash/untrash

Also allows passing an items param to the item list partial, so that
the list is updated to show trashed items or project items when not
browsing with Javascript turned on.