Remove autogenerated files.
Set executable bit.
Add separate m4 dir.
Rework subdirs structure.
Fix autotools issues.