flac: Add new API definition and implementation of package flac. Updates issue #4.