(portage-#20) add portage parse_atom function

This adds a function for extracting portage atom components out of a
string. It also centralizes the portage regexes to class constants.