* add tests for v1 of the JSON NTP client stuff
* update the NTP stuff to work with legacy and JSON
* add the NTP client legacy tests
* Update ntp-server.inc.php
* feature: Added app_state support for applications #5068
* moved schema file 173 -> 174
* Re-arrange code
* added device_id to dbUpdate call
* updated function + missing apps
* Rename 174.sql to 176.sql
* Remove $device, it is unneeded when updating. Rename update_applications() -> update_application()
* Some apps can return simply 0
* feature: Allow customisation of rrd step/heartbeat when creating new rrd files
* revert defaults
* added docs + webui config option
* Move RrdDefinition to an Object to make them easier to create and remove the possibility of typos.
* Fix style/lint issues and missing use statements
* 3 more missing use statements
* updated doc + moved schema file
* updated nicecase function for ntp server and client app
* ntp applications refactoring
* removed agent for ntp-server: reported as not working
* removed ntpd from agent polling. thx @murrant