Minor fixes

* Fix hashtable leak in port_get()
* Status file should be atomic now
* To prevent spoofing; ports respect source ip now

Signed-off-by: katlogic <kat@lua.cz>