Default to membership off in development mode
Catch more exceptions from broker

* Only rethrow 401 automaticall, add test cases to validate that
* Move the error handling to the core save method