Added tests to detect schema changes in core
added wrappers for protecting client secrets
Added missing parameter attributes
Added ttl to _expires index