Code cleanup.
Made everything working thus far(InaSAFE calculation, upload to GeoServer, pdf report generation, etc.).
Fixed the UI.