JavaThreadObject class

A hacky way 'around' the type system, and I guess a first step toward a
Thread class.