Factored out flag processing.
Moved prologue into repl.
Stdio flag can take browser/bare flag.
Merge remote-tracking branch 'joneshf/issue-165'

Conflicts:
	src/compile.js