Bringing back 'Reports' tab in device list views (+ some further cleaning).

This pull request fixes also some problems with tests giving errors related to `ASSET_HOSTNAME_TEMPLATE` (see changes related to `DeviceInfo` in `ui/views/common.py`).