Study editing page

this PR end up being bigger than expected:
- Fixes #499 - The study is now editable. The fields that can be edited depends on the study status.
- Fixes #610 - The patch for the database was already in, this PR modifies the study code so the environmental packages are actually associated with the study. I've created also the issue #641 which is related to this topic.
- The patch 2.sql introduced the timeseries types, but the code was not modified to store the user-selected values. That is done here.
- Changes on the study description page, in order to show more information (most of the information that is introduced on study creation); so it now makes sense to have a edit button (which I used a glyphicon!)
- Some rearranging of the create_study.html (now edit_study.html) code so it is easier to read and it renders nicely.
Agreed, that seems fair.

On (Nov-20-14|21:00), josenavas wrote:
> > +        Raises
> > +        ------
> > +        TypeError
> > +            If values is not a list
> > +        ValueError
> > +            If any environmental packages listed on values is not recognized
> > +        """
> > +        # Check that a list is actually passed
> > +        if not isinstance(values, list):
> > +            raise TypeError('Environmental packages should be a list')
> > +
> > +        # Get the connection to the database
> > +        conn_handler = SQLConnectionHandler()
> > +
> > +        # The environmental packages cannot be changed if the study is public
> > +        self._lock_non_sandbox(conn_handler)
> 
> Changed the order. We can potentially transform that to a decorator. The :-1: is then we will perform to connections (i.e. to calls to SQLConnectionHandler) per function, and we probably do not want to do that... I would say that it should not be blocking this PR and worth discussing in another issue.
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/biocore/qiita/pull/642/files#r20698535