Support for Openlibrary search api

The brunt of this pull request is d9d9d86, which adds support for the openlibrary search api.

Also 
* Updated the ```require``` syntax for ruby 1.9.2+ compatibility, and tested against 2.0.0
* Fixed the failing login test case.