Can now register custom field classes

Can finally register custom fields in extra code.
These fields will be added to logs automatically. fixes #49
Related to #26