Fixed some syntax errors, css issues and doGetUserMedia() for camrestest

Camresolutiontest.js was calling getusermedia() from adapter.js hence device selection was never applied (sourceId), changed it to call doGetUserMedia() in main.js instead.

Also removed some spaces, removed an unused css property and removed parenthesis for typeof as it's an operator, not function/method.
Instead of doing the checks for the type just pass the right callback straight away.
The common way to do that is the || operator.
E.g.:

var failFunc = onFail || function(error) {
   var message...
   reportFatal(errorMessage);
};