Davetest

For review of apps.js
@davras this looks very similar to control_alarm.html. Is there something we could do to reuse them and just having one?