templates allowed anywhere!

* templates no longer specific to crafts
* no need to separate crafts from templates - if an entry in the crafts
  section looks like a template, it is a template
* split database logic into smaller, somewhat decoupled units
merge templates into crafts
some tests
fix templates for non-crafts
new syntax: processing and defaults
split ic2 processing a bit
move around recipes
load defaults first
Macerator
guard against cycles
don't calculate tier unless given an option
cycle detection in tiers, unfinished
More cycle detection
solve cycles in tier graph

* for items left unsolved, assign high tier values
* keep running until tiers can't go any lower
move stuff around
templates in processing
Merge branch 'processing' into gregtech
multi-out processing
clay ic2-vanilla compat
Merge branch 'processing' into gregtech