Add blocks to layout to make it easier to customize for iframes
add sid and divid information to template.
exclude the superflous parens warning.
remove prints
fix path to rcfile, remove extra prints
Add first and last, prepare for using in iframe