Added ActiveRecord::Base#has_secure_key (via ActiveRecord::Securekey)

This is how the API will look like.

- [X] Done Implementation. 
- [ ] Documentation's work is in progress

fixes #16879 
cc @dhh 
The rest of the test suite uses functions instead of the blocks