added reduction app

also added a json generator under dirmanage
and updated the base html template and style