Added and use REST for get, post, check user. Fixed event for add file.