[PACKAGING] Move ast_gen importing into a function.

Remove ast_gen from the global name space. Import and use only
within the overidden command.
[GIT] Cleanup .gitignore, organize it better.
[README] Add note about the rebase.