Add DF3D_USES_PYTHON flag, minor refactoring, add editor stub, add config header.