Update maven project and change library packaging to aar

Also fixed some naming issues and updated some dependencies.