Avoid NPE.
Use execImpl instead of fork.
Make params public and add size guards during sharing of layer weights and biases.
Cleanup.
Merge branch 'master' into arno-deeplearning2