CMS-3958 Let ContentResource.listBy* return total number of contents

Restructured getContentByParent to findContentByParent, moved query to nodeService where it should be.