improve Config classes (fixes #9) and allow customization of ObjectMapper (fixes #8)