chore(twitter): cleans up Twitter API to work with 1.9 session

This updates the session handling to use the new elgg_get_session and set/get/remove
rather than the deprecated array access. Also cleans up ElggSession a bit.
Merge pull request #7016 from mrclay/6917

chore(twitter): cleans up Twitter API to work with 1.9 session