some refactoring, but mostly just completing implementation
patch BackupPC::CGI::Lib to support api paths