Component: Implement get and set extents

wrap get_extents and set_extents and remove deprecated get_size
and get_position.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=740597