Adding ability to delete Idea from IdeaThread

see #13

- removes related IdeaThread if it's the last one
- added hasPermission(user_id) Handlebars helper