Converted builders to use new transition and state machine factories

The builders now use the new transition and state machine factories to
create transitions and state machines.  This abstracts the creation
call of transitions and state machines into the factories which have
public methods.  This will allow the builders to be moved into a
separate package.