Adds elgg_get_file_simple_type() to core

Adds refactoring to #7319 to add docs, clean up docblocks and style stuff.
@hypeJunction in the old PR you were adding this to deprecated-1.8. Was this from 1.7? Has it been missing this whole time?