Make it more convenient for Mac users, so they only have to set the path to the app
Set ARD_HOME depending on platform

Not sure if SunOS is actually the same as Linux
Get PROGRAMMER variable from boards.txt
Added support for Arduino 1.5.x including submenus for standard boards
Added else statements
Read build.board from boards.txt and define it, as it is also done in Arduino 1.5.x
Always read submenu entry before main one
Merge branch 'master-origin'

Conflicts:
	_Makefile.master
Better error message
Read ARD_REV from revisions.txt
Renamed variable
Remove REVISIONS variable
Fixed comment
Added comments
Updated comments again
Renamed variable
Removed ARD_MAIN as it is not used
Check if BOARD_SUB is defined before trying to use it
Merge in Lauszus-master and fix up conflicts.