Add COPYING file making the licence clear

COPYING:
    This is the licence test used in the source files.  It's the 3-clause
    BSD license.
Make configure more robust.

configure.ac:
    Use AC tests to check for the protocol buffers libraries.

src/Makefile.am:
    Use the variables defined by configure.ac to build the tool.