Cleanup and simplify code base

Before implementing CSP 1.1, I will clean up code base.

* Fix broken indent
* Remove extra blank lines
* Expand space separated list before check quoted (now cannot detect non quoted source in space separated string) c1fa446
* Normalize source list to array to reduce `if (Array.isArray(...))` 586e899