Add ability to enable/disable recorder on entity settings dialogue

Closing as a duplicate of:

https://community.home-assistant.io/t/make-recorder-logbook-and-history-includes-avaialable-for-editing-on-the-entities-page/212515

Please vote and comment there.