Allow no space between # and the header text
Fix regex bug for image tag identification
Prevent the app from completely blowing up if someone links to an internal file that doesn't exist
Redirect from /name/branch to /name/branch/ for JS tree compatibility