Merge pull request #11 from racker/expand-api-2

Publish new Perigee API.
Don't segfault if Do returns nil, err
Merge pull request #12 from justinsb/segfault_on_error

Don't segfault if Do returns nil, err