Switch to Maven directory layout and library import