Thread ordering

front loaded thread ordering on post
Optimized thread sorting

Optimized thread sorting that occurs on every post. The major changes
are: sorting when the thread is already at the top of the board doesn't
happen anymore, if a thread is moved to the top, sorting is only done to
the point where the thread originally was.

Locks have been moved to the vault where locks are now passed out based
on unique ids. This allows multiple boards to sort their threads without
hitting the same lock.
Fixed a bug in threads.byBoard

Fixed a bug where threads.byBoard always returned the same (first) page
Updating deps for level.
Mapped index dep.
Mapped index wrapped around sublevel.
Temporarily disabled tests for pending refactor.