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.
Looks like it is since `instanceof` has higher priority than `!`, but still, this made me wonder...