Add url regex for reverting links. Closes #1. Various other fixes