Improve regenix template engine and REST controller, fix reverse action url