pagination with tags now works, but the search does not.
search now works without pagination
pagination now works with full-text search, too - but the code still remains to be cleaned
do not unnecessarily repeat the full text search when changing pages
added some braces and semicolons
- refactored the search state in main.js
- also some other changes (to be reviewed)
paginator's switchPage() no longer calls item fetcher
call fetchNewPageOfItems in the end of searchWithoutCountingFirst
don't disconnect and connect to the db all the time
cleaned up syntax
Merge pull request #7 from mikukopteff/pagination-with-tags

Supposedly fixed the following Trello issues:

- Sivutus tagihakuihin
- Sivutus hakuun
- Haku ei toimi casen sivuilta
- Jos klikkaa tagia "asuntotuotantotoimikunta" uusimmista, haku ei löydä kun 8 vaikka niitä on huomattavasti enemmän