Cleaned up OAuth signature generation code.