Major refactoring of code

Added new dependencies to include Google Gloud Messging API, JSON, and
FlexJson packages