Added new $crud wrapper and session management.