DRY up the routes and also extend project names up to 10 characters

I noticed using it with our Jira OnDemand account, it wouldn't match some of our projects.  Tracked it down to the Project Key being too short.  I checked our install and the project key allowed up to 10 characters.

While fixing that, I took the opportunity to DRY up the regex