TODO: updated
autotools: adopted autotools.
main: set app dir correctly.
.gitignore: updated git ignore.