maint: correct name for license file

* LICENCE: Move to LICENSE.
* libvirt-java.spec.in: Reflect the rename.
* AUTHORS: Add myself.
Fix memory leak for virDomainGetSchedulerType.

The string returned by virDomainGetSchedulerType must be free'd
explicitly.

JNA docs say that we have to use a Pointer as a return type and
free it ourselves. So, simply use virFree for that matter.
Fix build with jna >= 3.5.0

Since jna-3.5.0, all subclasses of com.sun.jna.Structure are required to
implement getFieldOrder method which is supposed to return a list of
fields the wrapped structure contains.
Explicitly set includeAntRuntime to false for javac tasks.

This prevents warnings like this:

warning: 'includeantruntime' was not set, defaulting to
         build.sysclasspath=last; set to false for repeatable builds
Introduce a javac.debug property.

Set this to 'true' if you want to build your .class files with
debug information.
Add findbugs build file for ant.

This requires a findbugs installation and the findbugs ant library.
Make finalize() methods protected.

Reported by findbugs:

Finalizer should be protected, not public
A class's finalize() method should have protected access, not public.

 Bug kind and pattern: FI - FI_PUBLIC_SHOULD_BE_PROTECTED
Remove redundant public modifier from Libvirt interface methods.

This prevents errors reported by checkstyle, see
http://checkstyle.sourceforge.net/config_modifier.html#RedundantModifier

JLS 9.4: It is permitted, but discouraged as a matter of style, to
redundantly specify the public and/or abstract modifier for a method
declared in an interface.
Change visibility of class members to private to enforce encapsulation.
Mark virConnCopyLastError and virConnGetLastError as deprecated.

They are only retained for backwards compatibility.
Call processError only if a libvirt function indicates an error.

Usually, when libvirt functions return an int, an error is indicated
by returning -1.

If libvirt functions return an object (pointer), an error is indicated
by returning null.

Add overloads for method processError that check for these special
return values and call processError() in case an error occurred.
Split JUnit tests and use a fixture for Connect.

The tests have been separated into a test case requiring
a libvirt connection and a test case which does not.

Every test gets a new Connect instance by using a fixture.
This avoids duplicate code and makes tests more consistent.
Split "build" target and automatically rebuild out of date files.

The "build" target was split into these individual targets:

"build"       (default target) only compiles the main files
"jar"         packages the main files into a jar
"buildtests"  compiles the test classes

The class files are rebuild when any of their dependent source
file changed.
Avoid unnecessary copying and calling virResetLastError.

Just use virGetLastError instead of virCopyLastError.

Calling virResetLastError is unnecessary because every public
libvirt function will first reset the error when being called.
Remove the libvirt instance attribute from all classes.

Every class contained a member called "libvirt". This member
was initialized during construction to refer to the Connect.libvirt
member variable, which in turn referred to the static
jna.Libvirt.INSTANCE field.

Add a Library class which contains a static "libvirt" field and
import this field statically for convenient access.
Fix memory leaks for libvirt functions returning newly allocated memory.

Use JNA's Native.free() method to free memory. This requires JNA version
3.3.0 or later.

Remove virFree from Libvirt interface.
Remove functions not intended to be used by libvirt bindings.

This affects virSecretGetConnect, virNetworkGetConnect and
virDomainGetConnect.

The libvirt API documentation has this to say about those functions:

WARNING: When writing libvirt bindings in other languages, do not use this
function. Instead, store the connection and the ... object together.
Make the build fail if any of the JUnit tests have errors or failures
Avoid creating new Arrays and Lists on every struct instantiation
Implement virDomainBlockResize

This adds the blockResize() method to the Domain class

Signed-off-by: Wido den Hollander <wido@widodh.nl>