Add datetools class

add class for working with date. Add some small changes. Also fix
problem with JsonIgnore