Make this example more newbie friendly so it can be used as a template

Is it possible to see:

1) If I missed any imports above which are imported fro you by default in Quantopian
2) Some one must improve the log_format string to include line numbers, file names, class and function names
3) Import history function when it is part of Zipline
4) Set up record so you will get the same plotting
5) If possible a dummy place holder for sid and symbol so the code can be direct copy past with no further editing. What this maps into (ticker symbols) can be setup in the below / above section perhaps using a map.