revamped packaging logic, better tested and separated from main FoundryClient code. successfully posts java apps!