Added Magnetometer calibration

Added ability to calibrate accelerometer.  OpenGL windows are now using
pure vertex buffer objects and no longer using any deprecated OpenGL
functions.  Currently calibration values are still being written to
labels on the windows form.  Next commit should output calibration
values to a text file