Adding support for including a file only once with 'require'

It would be quite handy to be able to include a file only once when it is referenced from multiple files.  I've added this support using 'require'.  It works like node's require, or PHP's require_once.