Fix missing "promise kept" status for the last line in a file.

For the last line we shortcut out using MatchRegion, but previously
we did not set the promise status.

Fixes issue 2943.
Fix "changes" promise not receiving status when file is missing.

Fixes issue 2820.
Fix linking problem in lastseen_load
Merge pull request #796 from jeffali/feature/delkeys9c

Fix linking problem in lastseen_load
libpromises: initialize variable, avoid gcc warning
libcfnet,promises: allow TCP port numbers from 32k-64k

Oddly enough, we had been using "signed short" for TCP port numbers,
limiting usable ports to max 32767. But there are more! I tried to
use the "53308" port and then stumbled upon this limitation.
files_lib.c: cast a const, avoid a gcc warning
server.c: after refusing transfer access, exit the function

Why would we want to continue with the flow and open the file?
Remove repeated code section.
Switch to using NOTICE log level for file change messages.

Otherwise the message is preceded with an error tag, which is not
really the case.
Merge pull request #798 from kacfengine/changes_with_depth_search

A few cleanups for files with changes promises
Merge pull request #793 from kacfengine/match_region_bug

Fix missing "promise kept" status for the last line in a file.
Merge pull request #795 from kacfengine/issue-2820

Fix "changes" promise not receiving status when file is missing.