Added scripting

- Added REST scripting.
- Added page scripting (not tested yet)