Convert Mix.TasksServer from a GenServer to an Agent

https://github.com/elixir-lang/elixir/issues/2336