Show only a sample or a prep metadata summary

The metadata summary handler is now capable of rendering only a sample template
or a prep template. Additionally I've fixed a bug with the wording of the
summary results.

@antgonza, I am not plugging this with the GUI, but you should be able to do go
to the following URL if you want to look at a sample template:

http://localhost:8888/metadata_summary/?study_id=10000&sample_template=10000

And to this URL if you want to look at the prep template:

http://localhost:8888/metadata_summary/?study_id=10000&prep_template=1
Yes, good catch.

On (Oct-30-14|10:37), Antonio Gonzalez wrote:
> > @@ -146,6 +147,46 @@ def template_to_dict(self):
> >                  'target_subfragment', 'barcodesequence',
> >                  'ebi_study_accession'])
> >  
> > +    def test_stats_from_df(self):
> > +        obs = stats_from_df(dataframe_from_template(SampleTemplate(1)))
> > +        for k in obs:
> > +            self.assertEqual(obs[k], SUMMARY_STATS[k])
> > +
> > +
> 
> Is this gonna break flake8? 
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/biocore/qiita/pull/543/files#r19621760