feature(fielstore): add elgg_file_get_simple_type() to core API

Add elgg_file_get_simple_type() to core API and clean up the mess related to simple type parsing across core and file plugin
Add inline code marks around this function.