Full support for iPad. Logout support. Some bug corrections.