dhisAPI and various bugfixes, and integrated event fields and formjs javascript into index.html