Cleanup restContext.xml

- Move corsFilter, jaxbProvider and jsonProvider beans
  under the contentServer.
Add form validation

- Create two separate forms for author and content
- Hide empty content when the author form is invalid
- Disable the save button when the content form is invalid
- Test form validity the add and save functions
Fix index.js

- Test for ids != null before iterating it