ENH: Redirect github blob URLs to raw.github URLs


- Factored out URI value parsing logic
- Compile REGEXes once
- Doctest
- Removed ambiguous form handling logic