Self contained extension module

The Geomagnetic Library was copied into the source tree of the extension module to make it self contained and not reliant on an external library.