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
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