add generic interface for determining installed version of apps

New in cask:

update_version - version to compare against on update check. Defaults to
`version`, must be set for `latest` apps. Not used atm.

check_version_cmd - commands to run inside installed app dir to get the
version out. Maybe parse a plist or run a `bin --version`.
modify firefox cask to check for version on info