Add -a flag
Add -a flag

I also made a decorator for all the functions to avoid repeating both
the auth code and the bucket iteration code.

Change-Id: Ia432bba2c62e71a3da41ad4bd1755ce4e5677710
Reviewed-on: http://review.membase.org/3251
Reviewed-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net>
Tested-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net>

couchbase/ep-engine,owendCB/ep-engine,daverigby/kv_engine,owendCB/ep-engine,zbase/ep-engine,zbase/ep-engine,zbase/ep-engine,membase/ep-engine,teligent-ru/ep-engine,sriganes/ep-engine,daverigby/ep-engine,membase/ep-engine,hisundar/ep-engine,couchbaselabs/ep-engine,jimwwalker/ep-engine,abhinavdangeti/ep-engine,teligent-ru/ep-engine,jimwwalker/ep-engine,zbase/ep-engine,sriganes/ep-engine,daverigby/kv_engine,daverigby/ep-engine,hisundar/ep-engine,abhinavdangeti/ep-engine,couchbase/ep-engine,couchbaselabs/ep-engine,abhinavdangeti/ep-engine,daverigby/ep-engine,daverigby/kv_engine,couchbase/ep-engine,hisundar/ep-engine,membase/ep-engine,abhinavdangeti/ep-engine,couchbaselabs/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,membase/ep-engine,teligent-ru/ep-engine,sriganes/ep-engine,owendCB/ep-engine,daverigby/ep-engine,couchbaselabs/ep-engine,teligent-ru/ep-engine,sriganes/ep-engine,zbase/ep-engine,jimwwalker/ep-engine,hisundar/ep-engine,abhinavdangeti/ep-engine,owendCB/ep-engine,couchbaselabs/ep-engine,daverigby/kv_engine