Only add mentoring application to INSTALLED_APPS when in virtualenv

@nedbat Reopening https://github.com/edx/edx-platform/pull/2831 rebased against master, now that rc is merged.