refactor make_object
Change to use configuration struct to build Machine.

Not all new cxxcam features are bound to js yet.