generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://review.couchbase.org/34101
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdbdca10695f96874c1bc
Reviewed-on: http://review.couchbase.org/34102
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>