Add Trits -> integer conversion.

When a Trits object is constructed, its equivalent integer value is also
stored as a member attribute, and this is returned by the __int__
method.

I still need to work out the finer details of the reverse (integer ->
Trits).