Updated for Arduino 1.0+ Changes

Updated to support the new arduino ide (1.0 and newer). Most notably,
the change from WProgram.h to Arduino.h in the imports.