De0 fixes

A few fixes to clean up and remove local code in the de0_nano system. As I don't have the hardware it would be nice if someone could test this on a real target before we push to master