Properly use Resource API.

Python 3+ setuptools requires non-script resources to be
explicitly included in the package. Also, because the package
is installed as an egg file, the resources must be extracted
by the pkg_resources API.