Upgrade to Maven

Converted project to Maven and added dependencies.