Refactored

model.rb is now called url_repository.rb
validiation of urls and vanities and the creation of the shortened url are now done in the url_was_shortened method"

Signed-off-by: Bebe Peng <bebepeng@gmail.com>