Cowboy handler

The code for checking that on `POST` the path was `/shorten` and that there was a body `url` param was too complicated for an example, the usage of exception for all code paths that generate `4XX` is a lot clearer in my opinion.