WIP: Add preconditions to Structure

this is an example to show how to use the new preconditions module.
Depends on merging https://github.com/bitpay/copay/pull/739 first