JSON format option id_policy allowing id generation to be optional

See http://jira.codehaus.org/browse/GEOS-6314

This pull request includes test case and documentation (and should be in position to be cherry-picked back to stable).