various cleanup

- Prefix URL with http:// if they have no scheme
- got rid of unused code (Device table)
- validate SSL certificates
- expands a set of URL shorteners
- check if the favicon exists
- cleanup

review: @schilit