indent error flow

https://code.google.com/p/go-wiki/wiki/CodeReviewComments#Indent_Error_Flow

Diff seems big but I've just moved the error check to the top and removed the indentation of normal code.