Import the basic build scripts from CyanogenMod
Simplify releasetools to match CM releasetools
Improve Makefile to generate flashable ZIP