Ticket Support

This is the implementation of tickets, as described in https://ripple.com/wiki/Multisign, which is required for M-of-N work.

A set of integrations tests to check ticket creation, lookup and deletion will be needed and will be pushed into this request as soon as they are done. 
This blob of code is really hard to read!

perhaps extract the bind as a separate variable?  These days, lambdas are generally preferred over bind...?