Make httpmime dependency optional
Fix formatting