Fix Camera.js bugs resulting from Common.js transition

also: switching to photos tab doesn’t necessarily update photos,
has to be triggered manually
Halfway decent photo-scroll

No longer need the time-out, as the photoUpdate no longer is triggered on tab switch

The scrollToIndex did not work together with the tabIndex property: it works on the
actual order of rows.

As the row starts with a separator row, then photo rows and separator rows intermittently,
We know index n in the photos corresponds with index 2 * n + 1 in the table.

FIXME: it somehow not always scrolls to the top of the photo (i.e. in the Moscow case)
Oops! CommonJS mistakes still around…
Fix Push_*.js bugs resulting from Common.js transition and adapt their structure
Work around the jerky margin problem

Instead of trying to fix it, work around it, by storing the position before opening the modal window,
and restoring to this position when closing it.

http://developer.appcelerator.com/question/178365/scrollview-jerks-to-the-left
And… Yet another way of being off-line
JSLint assisted code review

Mainly problems with variable scope; iOS Simulator is lenient with those (variables are actually global),
but they could bite us on Android
After install the ‘create new user’ screen doesn’t allow one to login with an existing user.

Otherwise, new users that tried out existing usernames would get messages saying:
‘the password is not correct’, instead of ‘the username doesn’t exist’

There is a cheat to do it: prefix your username with konamikonami
In this case it will attempt a login instead creating a new user.