Fix various issues. Big thanks to Drgravy for all the original/hard work

Conflicts:
	BoardConfig.mk
	device.mk

Change-Id: Ia0b96cec4a40b7e661692addc723e6879138b102