beets-git: moved PKGVER(), added --optimize=1 to install and updated PKGREL

Moved PKGVER() to the top of the function list
Added --optimize=1 to install line to generate .pyo's for pacman tracking
Updated PKGREL to 2