initial commit of the refactoring to use AFNet 2.x series

done for [AGIOS-162](https://issues.jboss.org/browse/AGIOS-162)