Create and use a preprocessor object before syncing

Preprocessor will minify JS.
Run this before the file is synced if the option is turned on.

Silence the `session_start()` error message as it was annoying when
running the test suite.

Added tests for the preprocessor