Added heartbeat thread lock so it doesn't mess stuff up
Added CommandHandler so you can add custom commands without editing the server class
Added heartbeat lock