Added track count support to Ampache.
DRY in Ampache handshake processing.