code cleanups

- rename a to source to indicate it's usage
- use Page.text instead of Page.get()
- use line separator from config

Change-Id: Ibfd7d06a38d880b2ced1f72ef4f2bd9f7b0c5d0d
Merge "code cleanups"