don't update metadata if it's undefined (to not raise unnecessary events)
CDB-358 #refs added cartocss to wizard for simple wizard
refactor to avoid duplicate code
fixed specs
CDB-393 force core in the UI