change records routes to allow dashes in pid, and add spec

I modified the routes file for hydra-editor to allow dashes in the pid, and added an accompanying spec test, that replicates the problem we saw where 'edit_record_path' was raising an exception for pids with dashes.