Initial checkin of perl API - also will be stored on CPAN