Removed the duplicated netty dependency in SBT build file.
Added dependency on netty-all in Maven.
Only check for repl classes if the user is running the repl. Otherwise,
check for core classes in run. This fixed the problem that core tests
depend on whether repl module is compiled or not.
Merge pull request #615 from rxin/build-fix

Maven build fix & two other small changes