small refactoring commit controller

What i did:
1. Moved commit controller to own file
2. Refactored commit controller a little bit
3. Made the jslint compliant (this makes it a little inconsistent with the rest of the code, feel free to give me your opinion on that)
4. changed stdout.js so it only closes WebSocket if it is really open
5. Do only connect to remote console if started (not pending)
6. ng-if on pr include template gave me angularjs errors, don't know why yet. used ng-show which resolved it (but now it will always include it and just hide it if it should not be shown).

I would appreciate some feedback =)

PS: 
1. I would really like to indicate more clearly that a build is pending and has not yet started. Any suggestions?
2. If at some point we would like to minify the js files, we should start to use:

```javascript
angular.module('app').controller("CommitController", ['$scope', '$http', function ($scope, $http) {
}]);
```

-3. What are your opinions on CoffeeScript?

David