minor refactor

pulled out function declarations, no functionality changes
helped to fix unposter
now unposter works

button and posts deleted when appropriate
Merge branch 'working'
Merge branch 'master' of https://github.com/maxtheman/blogJquery