http://jamiethompson.co.uk/web/2010/05/18/create-short-urls-with-php-shorten_url-php-function/