improve autolinking for usernames, unify with URL autolinking,
and add some test cases