Tesla's losses in the last quarter of 2016 prompts a 5.8 percent slip in shares and its CEO's resignation.