Make folder sorting obey the folders' hierarchy
Add tests for hierarchical folder sorting. Also, fix a bug in ActiveSync where the fake inbox's server ID to folder ID mapping never got updated.