Add functional tests

Closes #17
There is no CSRF for page add/delete