Pull @gocom's updates from master

- Newlines and spaces
- Updated PHPdocs
- Cleanup cleanWhiteSpace()
- fix getSymbol()
- Correct example for setDimensionlessImages()
- Less error supression
- Randomised internal tokens
- Don't calculate uniqid() each time shelve() is called