fix doctrine syntax & remove HistoryRepository.php
fix doctrine syntax in deleteAction
rewrite indexAction to return json
rewrite showAction to return json
fix return value to json & add exception
fix return value to text & add exception