Implements css/js dev includers for referenced inputs

Collects input files to be included by client directly.
Adds new collectIncludes function. Update watchdog to
use the same function (very similar functionality).