Implement support for the "package" keyword.

Refs #6107
Run INITIALIZE_ONCE() after static initializers.

Refs #6107
Refactor the agent and cluster components.

Refs #6107