added initial templates, template system and started writing queries
Merge branch 'upload-refactor' of https://github.com/rtCamp/buddypress-media into upload-refactor