Add cache and log abstract factories to configuration

See also zendframework/zf2#4389