Update for positioning of newly created items

When a user is in story-task view with a task selected and presses
"create story", the new story will be placed directly after the story
that contained the selected task. The same applies for the epic-story
and theme-epic views.
Moved similar code snippets to a single function
Merge pull request #41 from fredrikpersson/createpos2

Update for positioning of newly created items