Filter wpseo get terms

Added _wpseo_get_terms_ filter including API documentation in response to [this user request](http://wordpress.org/support/topic/post-title-template-tag-commas) on the forum.

Had to restructure the wpseo_get_terms() function a bit to allow this to work.