initial commit
Hudson / Jenkins script from CyanogenMod and CyanDream, rebased.