@aojwang, it basically requires webservices.rest in the latest version. Unfortunately, the login page requires login locations, but the code could be easily modified to not require them, if they are not used/configured.
Some parts of code may require reference application metadata, but that could be probably imported into your system once identified. I can't say off hand what metadata is needed.
If you share url and credentials to the test server, I'm sure we'll be able to help you get it working.