Move some methods from pycore to project.

These functions are better placed in the project object. Adjust the
functions that call them appropriately.

Also:
* Use project, not pycore.
* Use 'project.get_pymodule' instead of 'pycore.resource_to_pyobject'.
Have deprecated functions in pycore call replacement functions.