Rebased onto 0.2.2

Some tests aren't passed, due to changes and UI (for example, log in dialog is no longer a menu item but an action bar item, and robotium can't find it).
All tests are passed, fixed a logindialog bug.
I'm not showing parmegv account pass.

I'm using a new testing account, parmegvtest1
Tests for CW pass.

I've slightly modified a confighelper method regarding sharedpreferences, but that shouldn't be a problem since I'm going to remove those methods soon from there.
Tests can be run from cli.

Command: cd tests && ./run.sh
Script to run tests from a test class directly.

It receives the path to the file, and it runs the tests coded in there.
minor changes for running tests
Merge branch 'feature/tests-0.2.1' into develop