pspush: updates and fixes

  fix nomenclature (this is bash, not java)
  break into multiple funtions for flexibility
  add some error/redundancy checking
  automatic revision lookup
  definition and variable revision

Change-Id: Id7b4551fe13ba1c07170090dc34a1a02314ab6a6
Signed-off-by: KhasMek <Boushh@gmail.com>
customsdkgen: fix a derp

Change-Id: Ie85b2c196cef256c9db5455741cfd53a8788cb20
Signed-off-by: ChampionSwimmer <championswimmer@aokp.co>
Merge "pspush: updates and fixes" into kitkat
Merge "pspush: updates and fixes" into kitkat
Merge commit '9d11ea5d1a0e3d09232fbd8ea101632c8564bcbe' into kitkat