Handled InvalidRegistration in server
ANDROID: Refactored network code, improved network error handling, closes #129