Fixes #110 Link detection
Better solution for #78, #79 and http://dev.mybb.com/issues/996