DB IDO: Add endpoints/endpointstatus tables.

Refs #5636
DB IDO: Send endpoint authority for status updates.

Refs #5636
DB IDO: Clean schema.

Refs #5636
Move cluster endpoint/jsonrpc functionality into libremote.

Refs #5690
Refs #5636
DB IDO: Set is_connected=1 on identity==node.

Refs #5636
DB IDO: Add endpoint id to history tables. (WIP)