Clean up code, add sensible deref option default

* Removed debugging puts and commented code

* Fixed 'deref' connection option parsing, set default 'deref' value
  to '0'