refactor PouchException to be runtime exception, rewrite example #2 synchronously, fix http stuff