refactored API

/api/model/view expects POST with this json: 
#expects json: {"projectdatafile:<name>,"startyear":year,"endyear":year}