Adding ability to edit and delete Idea from IdeaThread

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