Adding qiime map file

This adds the creation of the qiime mapping file (combination of prep/sample template) at the when the prep template is added. Note that the code is ready for review, it tests pass, but we should merge https://github.com/biocore/qiita/pull/677 first. 
I think you can use [`find_repeated`](https://github.com/biocore/qiita/blob/master/qiita_db/util.py#L898).