core specific code improvements

- use site code instead of site.lang
- replace page.get() with page.text
- replace page.put() with page.save
- remove old setAction method

Change-Id: Ife82ea3dd66e8e0393ea03741dbd869d852289f9
Merge "core specific code improvements"