Allow compatibility with BasicObject and descendants.

* use #__id__ instead of #object_id
* use #__send__ instead of #send
* monkey patch BasicObject to give it #class using this hack found here:
  http://stackoverflow.com/a/10216927
Merge pull request #1 from griffindy/master

Allow compatibility with BasicObject and descendants.