GPIO & Flash Environment

Finally got this all checked-in, but I suspect you'll want to move a bunch of stuff around so I didn't push it to the main repo.