Added State<T> class.

Used to operate variables, that might have their values need to be updated, a bit more convinient.

Also improved Camera caching a bit.