Clean up the reference datasets page and upload dataset page.

Separated the Add dataset tab and reference dataset tab entirely - no longer sharing the right span
Fix upload dataset button to correctly redirect to the upload page when on datasets sub directories
Add javascript to determine the active tab based on the end of the URL