Fixed duplicate messages being sent

Messages would be sent more than once to the frontend due to timestamp
issues (milliseconds).  There is now an epsilon of 1 ms to account for
this error, although this is still unsafe (although unlikely to cause
problems).

Frontend & Backend now use Unix timestamps (You're welcome, Enzo).
Added auto-scrolling and refactored the timestamp function