Import a controller class from an egg.  Uses the entry point group
    "appathy.controller".

def import_egg(string):
    """
    Import a controller class from an egg.  Uses the entry point group
    "appathy.controller".
    """

    # Split the string into a distribution and a name
    dist, _sep, name = string.partition('#')

    return pkg_resources.load_entry_point(dist, 'appathy.controller', name)