add "initializeWeights" and "finalizeWeights" to GradientOptimizer
optimize: making ParameterAveraging and AdaGrad behave well with the GradientStep changes; making initialization happen in a single thread for both
optimize: removing useless reimplementation of inheritance
Merge pull request #65 from alextp/weights-finalizers

Weights finalizers