Use Aether to resolve dependencies and build classpath.

THIS CODE IS SO UGLY!