Bug 858992 - Part 0: fix assorted style and performance warnings.
Bug 858992 - Part 1: include readinglist and pinned in SQL fragments to ignore folders.
Bug 858992 - Part 2: test for pinned item children.
Review comments.
Bug 858992 - Don't sync pinned bookmarks. r=nalexander