build: rewrite mkversion.sh to use git metadata (#239)

The current build/mkversion.sh still expected an SVN repository layout,
rewrite it to derive tags and branchnames from git metadata.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Merge branch 'master' of github.com:openwrt/luci