Use analogPinToChannel if it's defined
Removed call to analogPinToChannel for Leonardo
Check if ATmega32u4 is defined

Needed in order to work with Arduino Leonardo
Removed double instance of the same code
Merge branch 'issue1366' of github.com:Lauszus/Arduino into Lauszus-issue1366
Merge branch 'master' into ide-1.5.x
Updated revision log
Added quoting to usb_producer key to preserve double quotes.
See #1422.
Workaround for incorrect argument passing of Runtime.exec(args[]) method on Windows.

More info here:
http://stackoverflow.com/questions/5969724/java-runtime-exec-fails-to-escape-characters-properly
http://msdn.microsoft.com/en-us/library/a1y7w461.aspx
http://bugs.sun.com/view_bug.do?bug_id=6468220
http://bugs.sun.com/view_bug.do?bug_id=6518827

Affects #1422
Fixed typo