Added extra actions.

Added actions for adding extra media fields and saving them and added get_thumbnail_id function