Use slaveapi for remote commands
Now properly iterates over buckets
Better logging