[FIXED JENKINS-20684] Parser for .netrc file format

This patch implements a parser for the .netrc file supporting various formats.
It is not restricted to having a machine definition on a single line but can
parse any valid format. The one exception is that it does *not* cope with
`macdef` definitions.