Update to Arduino IDE 1.5.x to support detecting and reporting out of RAM conditions

This is my original RAM check patch ported to the Arduino IDE 1.5.x branch, but otherwise unchanged. This reports RAM usage on all AVR boards, but also percentage of statically used RAM when available. It will stop a compile with an error if more than 90% of RAM is allocated statically.