Low: libcrmcommon,liblrmd,lrmd: validate PCMK_remote_port
This adds a new function for getting the local host's default TCP port for
Pacemaker Remote connections. This reduces code duplication and adds more
validation (i.e. it uses the assigned port number if PCMK_remote_port is not
a valid port number).