add csrf to logout link
fix format & indentation
move filters to filter file
add phpunit and unit test