Allow - ~ and . in course, branch, & block ids
Merge pull request #1386 from edx/dhm/bug-courseid

Allow - ~ and . in course, branch, & block ids