Fixed small bug in cache_lib when cache engine is not set in configs or entity definition.

Updated user_api to pay attention to user_status and deny login if not active.
Moved the cache/config.php file to be entity/config.php since it's only relevant to record/link entities, and has no direct relation to cache.