Merge pull request #532 from ey6es/master

Own IDs are still changing.  Hopefully, this will fix it.
Converted double timestamps to long long (64 bit integers), fixed bug with
updating agent timestamps.