General server+iOS architecture