kate generator: insert build targets

This can be used by the extended build plugin in kate.
Code is quite similar to the one for Eclipse.

Alex
kate: fix json format and docs

Alex