fix: InfinitScroll

Fix math of detecting when next set of entities to be shown:
1. Make sure if the screen is big and 1st page fit into it without
scroll, next page is displayed as well (previously scroll wouldn't
trigger since no scroll bar would be available)
2. Make sure to load next page without explicit scroll initiated by user
if entire 1st page already on the screen (applies to big screens)
3. Make next page load on fixed distance from the end (previously, the
more there are loaded records, the further from the end next page would
load, and this distance would increase with each page loaded, which
doesn't made any sense)
cosmetic fixes

1. use dirname() instead of `fancy` logic
2. remove dummy condition statement
Merge branch 'master' of https://github.com/kulbakin/anahita into kulbakin-master
merge pull request
fixed the notification setting url
Update README.md

added linux and unix to the list of requirements
the serializer inlucde the username
compressed javascript
reverted the scroll loader.
the gadgets are only loaded if they become visible
compressed javascript
commented the debug line
compressed javascript
merge
compressed javascript
added a comment
Merge branch 'master' of git://github.com/anahitasocial/anahita
updated the README.md
Update README.md
templates that are not found wwill not be be cached