moved calendar.class outsite the view.html page, add cal.code to catevents. Related to #134

moved calendar.class outside the view.html page to the jem.php page,
added some more code to the cat events view.