implement building with maven

create pom and fix character encodings by converting to UTF-8
improved afk with timeout support
refactor translateStringColor into utils