Update to swig 1.0.0rc3
macro support in swig
refactor form templates to use macros