Fixed issue with arrays.

Added server side templates (extremely basic).