Ios refactor2

refactor of iOS methods to split into multiple smaller methods (mainly splitting off the post/get functionality)