Abstracted badgeos_get_user_submissions() into a parent and helper functions
Punted submission and attachment output to separate functions