* Try and catch concurrency errors when creating new short urls, updating click count and logging redirects * Code refactoring * Couple more tests while at it Fixes #2538 Fixes #765 Fixes #1974 Fixes #2829