Bulletproofing cat parent/child selection

JS now deselects children on parent deselect. On post save, all
non-root parent categories are added to post (NB: this only goes one
layer up to avoid recursion and performance issues i.e. if a grandchild
category like those in reviews is the only category on save, only it’s
parent will be added, not its grandparent ‘Reviews’).