Initial work on porting filters. 

Placing items in frames is broken. Looks like it's because ItemStack.isItemEqual() is broken, though I could easily be to blame instead. Other than that frames should be functioning in 1.6.4 and 1.7.2 now.