Use appygram error handler

See #12
Set the api on the appygram object