First steps of #71 implemented

Split terminal functionality implemented
Close terminal from a split view implemented.