Slug validation bug

Slug validation bug - slug wasn't actually checked due to if statement parentheses/logic error. 

CSRF upon errors

If user entered invalid value which generated Flash error, the CSRF token used for regenerated View was set with invalid path so user additionally got "Invalid CSRF token found" message.

This forced user to load clean (non-POST) version of page and start all edits again.

Fixed CSRF for View to reflect the same path as POSTing page (page/edit/# or page/add)
slugcheck correction by @mvdkleijn
installation frontend javascript bugfix
Merge pull request #491 from marekmurawski/page-edit-fixes

Slug validation/csrf error in edit page
Fix SQLite issue with children() and childrenCount()

Fixes #45, however, will need additional work on unit testing
Merge pull request #492 from marekmurawski/install-javascript

installation frontend javascript bugfix - win/xampp