happstack: Further refactoring on hs files, graph and grid files added.