ios registration & fixes

added ios registration, fixed indentation bug, more
accurate/informative HTTP error codes