updated materialization to add codes to source data criteria after materialization and to indicate the source of the codes, white list, default, or user defined
add support for choosing codes
fix issues with user-defined codes

* client-side: data criteria constructor didn't work with preset data
* server-side: patient builder didn't allow for a user-defined code source