Refactor to use an explicit method

Signed-off-by: Gustavo L. de M. Chaves <gnustavo@cpan.org>
Make REST::Client follow redirects/authentication by default

This is necessary due to the HTTP authentication.

Signed-off-by: Gustavo L. de M. Chaves <gnustavo@cpan.org>
Set the UserAgent string

Signed-off-by: Gustavo L. de M. Chaves <gnustavo@cpan.org>
Fix example in the documentation

Signed-off-by: Gustavo L. de M. Chaves <gnustavo@cpan.org>