Bugfix: was returning inside the for loop instead of after it
Added some missing template parameters
Gideon : Refactored the JoshuaConfiguration. Made it into a non-static class, that is
passed as an object to the classes that need it rather than being accessed as a global
object, which leads to all kinds of unexpected behavior when running multiple
instances of Joshua within the same VM or alternatively multiple instances
after each other within a java test (e.g. executing the decoder twice).
Generally it can be argued that global state is almost always suboptimal,
unless there are very convincing arguments to adopt it - rather than just
convenience - which seems to be not the case here.

TODO: StatefullFF, amongst other classes still has global state. This should
also be refactored to make the whole enterprise completely without requiring
reset methods.
Merge branch 'master' of https://github.com/joshua-decoder/joshua