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
Allow uploader choice in upload.tool to specify a different platform vendor
Don't give up when loading hardware/ profile directories with some invalid directories
This allows you to create hardware profiles that support both pre-1.5 and 1.5 onwards (boards.txt, cores, bootloader etc. in root for pre-1.5 and <architecture>/ directories containing 1.5 onward content.

Still prints a warning if a hardware folder doesn't contain anything 1.5 compatible.
Minor typo correction

formely->formerly
Update incorrect docs in tonePitchFollower example

The comments state that the speaker should be on pin 8, but the code references pin 9. Updated the comments to reflect the correct pin.
[sam] 2 bugfix to SPI library.
- begin() after end() now works.
- unconnected SPI pin is selected as CS when old (non extended) API is used.
String: changed default to 2 decimal digits
Ethernet, SD and LiquidCrystal to the new library format
EEPROM library to the new format
Servo library to the new format
moved EEPROM.h to the /src directory
removed the CAN library for the Due
Audio library to the new format
Stepper library to the new format
String: fixed number of whitespaces in concat() methods
Merge remote-tracking branch 'upstream/ide-1.5.x' into ide-1.5.x-library-to-new-format
added some String methods syntax highlighting