This reverts commit 5c9ced5f031a1a4689aa7cb67fc676c190fc472e.

reapply CRM-11304 with change in require_once

This reverts commit 4de3ce95e1b804be9b4ea8f91606c069834e157d.