(Partially) re-fix #15 and allow links after br-tags.

Recent changes undid the fix to #15 but that fix also broke some tests. I re-added the working part in autolink-min.js, autolink.js and autolink.coffee and added tests for it. Also, I made it possible to use links after br-tags and added tests for that.