Finish implementing a basic url shortening API.