Fix issue #17: NetworkOnMainThreadException happens on Android 4.0 or higher.

Also address #16: Add progress ui for login and signup.