What do all the colored dots on the minimap mean?

On the minimap you can occasionally see red, green and blue dots. The red ones are enemies, but what do the other two mean? Merchants and craftsmen are marked with icons, what do the blue and green colored dots stand for?

enter image description here


Solution 1:

Green dots are allies.

Blue dots are people of interest or quest-related non-hostile NPCs.

Solution 2:

Green stands for friendly.

Blue for neutral.

Red for hostile.

Those are not necessarily important persons. For example the kids are marked as green dots on the map but you can't really interact with them.