updated bitly username and password to use test account
refactoring - made test code more readable by organizing, added comments, and renamed repository to hash to be closer to what it is
implemented test and code that emits the resutling url in an event.