index.php: store last tenant and target on the client

user/password is handled by browser, we may want to disable it according to
local terminal preferences (fixed-install terminals usually are shared)
cli: add a "skeleton class" generator for ORM classes

use with ./cli genskelclass and just answer its questions to generate
a very basic skeleton class
add some more common files into shared-js
shared-js: also add jquery.ba-hashchange.js in unminified form

the minified version is buggy on jquery 2 (browser property missing)