Added methods copyState and setState to ANNComponents.

They allow to copy the component state (inputs, outputs, deltas, masks, etc.) to
a Lua table, being they useful to implement backpropagation trough time (BPTT).