ImApp.setNewLocale uses new setLocale() method on >= android-17

Also, set the pref after setting the locale in cause of crash/exception
remove empty translations so they don't show up in the languages list

Soon, the list of available languages will be dynamically generated, so
empty translations would be misleading.
check status of pref.commit() otherwise just use pref.apply()

apply() does it in the background, but does not provide confirmation.
commit() provides confirmation, but is only useful if the return value is
checked.  apply() happens in the background and commit() in the foreground,
so using apply() should keep things more interactive. The SharedPreferences
docs recommend using apply() if the return value of commit() is ignored.
use system names for Languages preferences menu

Instead of maintaining our own list of the names of the languages, use the
Java names by requesting the "display language" of each locale in that
locale.  This makes only one menu item per language, there are no country
variants supported to keep the list short.  The exception is zh_CN and
zh_TW since there is generally no zh language.  We also have to manually
include 'bo' Tibetan since the system often does not support it.
ImApp.checkLocale() removed unused return value

Just cleaning things up so it is easier to make sense of things...
don't use android.R.string, it might not have Tibetan and others
removing unused files
update in UI
remove the button for layout... just a clean edittext
clean up UI lists and contact views
improve presence handling
always reload lists even if previously loaded
clean-up debugging
always load lists
NewChatActivity is the main class
Merge branch 'xmpp-urls-and-languages' of https://github.com/eighthave/ChatSecureAndroid into eighthave-xmpp-urls-and-languages

Conflicts:
	res/layout-land/activity_lock_screen.xml
Merge branch 'xmpp-urls-and-languages' of https://github.com/eighthave/ChatSecureAndroid into eighthave-xmpp-urls-and-languages

Conflicts:
	src/info/guardianproject/otr/app/im/app/ImApp.java
	src/info/guardianproject/util/Languages.java
simplify connection creation code
port basic tests from robo-tests/ to an Android Test Project

This is easily runnable using Eclipse, ant, and Jenkins.  It probably works
elsewhere as well, since this is the official way of running tests using
the Android tools:

https://developer.android.com/tools/testing/
show error message if sharing data when all accounts are offline

Previously, if a SEND/Share Intent was sent to ChatSecure when it was
offline, ChatSecure would just show a blank white screen.  That screen was
ImUrlActivity doing nothing at all.  When all accounts are offline, this
commit makes the blank white screen go away, and gives an error message in
a Toast.