Bookmark order (dependent on #598)

This fixes bookmark sorting, which before was in respect to the
bookmark title which made no sense what-so-ever. This fix will not sort
the array every time a bookmark is added, but instead just figure out
the newly added bookmarks relative position, and then add it.

Note, that bookmarks that are already placed in books will *not* get
sorted due to the algorithm above.

This PR is dependent on #598, and only commit 5dcf184 should be reviewed in this PR.

Fixes #293 and #604