Copying initial code from Gist to Git repo.

Folders are set up for building using Ino (inotool.org), but it should still work with the Arduino software too.