Added rudimentary makefile, upload script, and stub mainline.