Added auto-upgrade awareness and improved version detection

- Now retrieves the version number from the update file used by git-annex if possible.
- Fetches the version number from git-annex instead of our version file if possible, to avoid upgrading when git-annex's auto-upgrade has already done so
Improved the path warning.
Added basic HTML escaping