Added functionality to the UI and Agent that will help to intergrate Crank into D-Crank

Use `.ToLowerInvariant()` so that this will work on non-US English systems.