Fixed urlencode to work with cowboy 1.0's cowlib

`urlencode` was refactored out of cowboy into cowlib.
Swapped out cowboy_client with httpc
Switching from cowboy_client to httpc