Improvements to link shortener - actual checking, flashes, better redirects