Expose parts of the API to bucket owners

cbugg: close bug-542
Fixed some sem warnings in app.js