Refactored the flow of code and fixed set featured media issue
Merge branch 'master' of github.com:rtCamp/buddypress-media
Merge pull request #131 from joshuaabenazer/master

Adjusted the flow of code and fixed set featured media issue