rename output.py -> resources.py
always assume default there is a current document in plotting.py
factor out plotdiv and plotjs templates
further ad templates for file, resources and a script for plot.js
partially working output_file
Merge branch 'session_refactor' of github.com:ContinuumIO/bokeh into session_refactor