Revamped logging to add coloring (to distinguish processes), and fixed client refresh bug.