Added support for specifying multiple chunks to authenticate
Request authentication for all supported chunks with "--auth-chunk all"
Refactoring: moved common code used by both client and server to common.c