Adds some support for 2i.

Conflicts:

	lib/rex/resource.ex
	lib/rex/worker.ex

Adds some support for 2i.

Conflicts:

	lib/rex/resource.ex
	lib/rex/worker.ex

Conflicts:

	lib/rex/worker.ex