Backport of programmer can be used to upload sketches from Arduino 1.0


Former-commit-id: f646532b11d9937188c02f11f0fb3611b2c20263
Arduino 1.0 programmer support back ported.


Former-commit-id: 81a54d3e21b28690c247f4445e0d14a30da50399