Transform rebar3 ct input

Validate and transform input to `rebar ct`, this involves splitting up strings, converting things to atoms etc.

It does not validate that the input is _correct_, that means enums are not checked etc. That should be added later so we can return more readable error messages.

This will need some review (please!) but should be enough for rebar/rebar3#25.