Add code for getting and setting neighbor status

Since the neighbor status 32 bits are split up, functions for
easily masking the bits are necessary. The first 31 bits of
the remote status are the remote node's clock, and the 32nd
bit of the remote status is the failure status (0 for failed,
1 for alive).