Use rest-client

The rest-client gem handles errors and redirects natively. Errors bubble
up (e.g. 400 Bad Request) and redirects are necessary for the
/items?barcode request which redirects to the bibs/holdings/items path.
Glyphicon assets