Display short name instead of URL.
1. The supported url scheme is only http and https.
2. Display the file name and the extention if exists.
3. Display the last directory name unless the file name exists.
4. Display the domain name unless the file name and the directory name exists.
5. The regular-expression came from http://someweblog.com/url-regular-expression-javascript-link-shortener/