Resume/pause syncing are no longer private.

I miss static typing.
Keep pinned notes on-top.
Don't sort on bulk set
Wait for authmanager before setting registered

Without this, the server model might try to sync before the authmanager
is able to return the token.
Make symlinking work on windows.

In other words, use hardlinks/junctions. This should work on windows 7+.

This commit also makes the clean functions use Windows' `rmdir` instead
of the built-in delete task so that linked directories are not
recursivly removed.
Recompile templates.