Added username cache

Add username cache for mods to lookup a player's last known username.

MinecraftForge/MinecraftForge#1365
Close the output stream in a finally block to clean up the outputStream just in case something fails above