   def parse_command(payload) do
     command_data = Poison.decode!(payload)
 
-    command = command_data["command"] |> String.to_atom
+    command =
+      case String.split(command_data["command"], "/") do
+        [one_command] -> one_command |> String.to_atom
+        list_of_commands -> list_of_commands |> Enum.map(&String.to_atom/1)
+      end
 
     case command_data["data"] do
       "" -> command


  @typedoc "Response to browser."
  @type response ::
    {:reply, atom, any, any}
    | {:reply, atom, any}
    | {:noreply, any}

  @doc ~S"""

        |> send_response(%{state | proxy: pid}, req)
    end
  end

  @spec uniform_type(type :: atom | list(atom)) :: String.t
  defp uniform_type(type)

  defp uniform_type(type) when is_atom(type), do: type |> Atom.to_string

  defp uniform_type(type) when is_list(type) do
    type
    |> Enum.map(&Atom.to_string/1)
    |> Enum.join("/")
  end
end
