Polished state handling, added more methods

Attempting to abstract state handling as much as possible to reduce side
affects associated with using global state variables.
Finished Actor component.
Added warn() function
Updated and corrected some error checking