Adopt rest core 2.0

Sorry that I don't have a plurk account to test it.
Feel free to use it as a reference to upgrade to rest-core 2.0,
and please let me know if this doesn't work, thanks!

Also, it's totally fine if you don't merge this.
Just want to show some reference :)