rest: log boot times only for registered devices
rest: return empty array for empty values in by_ldap_attr
rest: Use by_attr style methods to clean up code