Cleanup proxy implementation, assign to correct types in login function, update mobile library with debug version.