Added redirects and initial logic to create shortened keys.