replace site.lang with site.code, code improvements

- use site.code which is needed here
- use page.title(asUrl=True) instead of deprecated method
- use site object from page instead of global one for showQuest
- use site.protocol() instead of hardcoded 'http'
- use nice_get_address() insead of nicepath() + title()

Change-Id: Iabc838e322c6deb6936d40b0ca04172a362b5844
Merge "replace site.lang with site.code, code improvements"