Replacing aggresive, racist terms

While this terminology has been used for a long time, those terms may carry racially charged meanings to users.
This patch replaces all occurrences of "master" to "primary"