short url hashing & cleanup