change to use REST directly

@vkuznet, I change template call directly call original REST api. instead of going through ajax_action.
Please review. server is updated (reqmgr2-dev.cern.ch)