Overhauled trial initialization

* simple parameter check and then return immediately when creating a
* trial; git checkout is done after returning the request