Add 'back to search results' functionality

This button will appear on the resource page, and should return you to
your previous search results screen.

This is still slightly buggy when dealing with multipaged results;
will commit a more robust solution soon.