Automatically initialize the CpkEngine

Add a getter for the CpkEngine instance that also initializes it
when it is requested.