Added template haskell for generating splices and forms