Change logger and ajax_prefix to not use require.

CMS tests and common/static tests are passing (except for 3 known CMS issues).