omit empty values in JSON serialization

Omit optional properties with empty values (default value) when
serializing JSON.
use JSON Pointers only when given in accept header

Serialize JSON using pointers only when the client explicitely requests
them using accept header parameter "x-json-pointer=true".