Refactored

created UrlHelpers and UrlValidator and deleted UrlShortener
only store new url id in hash in case domain name is changed
moved ErrorMessage class into constants in app: