added nonce check to all ajax post actions
replace all calls to exit with die for consistency
removed unnecessary lines and did some formatting
Merge branch 'nonces'
removed quotes wrapping a nonce var
Merge pull request #245 from pdewouters/master

mostly the nonces for ajax requests