Fix rest_pastebin example

Bring the rest_pastebin example in line with REST API changes for
creating resources.
Merge branch 'fix_pastebin_example' of git://github.com/acammack/cowboy