Fixed error messages which printed the same prefix twice

Also updated tests to pass with new error messages
Fixed cut off error message prefixes
Merged with master branch
Cleaned up error formatting code
Merge pull request #50 from firebase/jw-err-msgs

Fixed error messages which printed the same prefix twice