Added some profiling information to the main tick loop
Converted chat api to java because the scala compiler is throwing exceptions everywhere
Properly handle new chat api