Updated with latest dependencies
Added begin/rescue to deal with invalid data
Added url format and length validation
If the shortened url is generated, should appear in input box

After the POST and url insert are successful, the shortened url should
appear in the input box.
URL shortening appears to be working, along with validation

The next step is to incorporate flash messages and tidy the app up