added publish/unpublish and edit content wip
changed to use angular resource plugin