Closes #2 User tied to incident when adding a user and an incident together.
General reorganization and documentation of the javascript.
Fixed id and for tags in index.php