updated appImage to handle staging & live
added base 64 encoding and decoding