TIMOB-12651 Added source as seperate argument, replace some generic hashmaps with KrollDicts, start standardizing errors.