updating topics.getTeaser and get_last_undeleted_pid to return err first, and handled methods that called it
moved get_last_undeleted_pid to threadTools.js
if every post gets deleted in a topic, then the topic deletes itself also
Merge branch 'master' of github.com:designcreateplay/NodeBB

Conflicts:
	src/topics.js