Add support for tickets

Do *not* merge this. This is just a WIP, as are tickets themselves, and put here for peer review/usage. I added these to ripple-lib before writing some rippled integration tests as I forgot the tests used local signing.

This also adds a bunch of non-ticket related tec* transaction engine result string->number mappings to binformat.js