Don't call App::core to find things in the core

When _in_ the core. As a side effect this means the core doesn't use the
constant CAKE itself any more