Fixed board file parsing.

The old parser was not picking up any of the boards, fixed and simplified
the boards.txt parsing.
Added common.mk.

This file contains common functions used by the Makefile.
Fixed library include problem.

Fixed problem where include files from Energia 0101E0010 were not
being found. Also did auto-detection of the Energia sketchbook
directory.