Introduce maven and fix build errors

What the subject says. Make Maven build the project (to get the nice .apklib) and fix some build errors caused by Android lint.