smallHash: simplified and improved performance

Unchanged behaviour
XSS flaw correction

Closes issue https://github.com/sebsauvage/Shaarli/issues/134
Merge pull request #145 from Alkarex/patch-1

smallHash: simplified and improved performance
Corrected overlapping tags
A real "Stay signed in": keep the connection

Instead of trusting the php session, it uses a cookie. The php session
sooner or later is distroyed if not used. It depends upon the server
settings. Using a cookie ensures that one really stays signed in.

Dev notes: I wanted to avoid merge conflicts, stay with the main
developper standards and keep the "index.php" in one file. That's why
the code may not be that nice. My own dev level my also explain.
Merge pull request #155 from Sbgodin/staySignedInWithCookie

"Stay signed in" modification. This will help people with hosts which aggressively clean sessions on server side.
Update shaarli.css

Added word-wrap: break-word; to body, so that that text is well wrapped, and do not permit horizontal scroll-bars (on mobile, with responsive design).
Merge pull request #166 from timovn/patch-1

Update shaarli.css
Merge pull request #1 from sebsauvage/master

latest from Seb