Updated for entity support.

This includes adding the view_mode_page_change_entity_view_mode() function that is responsible for changing view modes. This is now entity based.

Commit also includes several notices for deprecation of node based functions in favor of entity based functions. Some missing entity based hooks are also added in this commit.