reformat code
add CSRF protection
add php-apc to dependencies