import generic Polynom-Division from bouncy castle

* needed for generic implementation (that will work with gf(257)
* allows us to minimize type conversions (a lot)

Still needs cleanup, but is a big step into the right direction. The
only missing "direct" bouncycastle/flexiprovider math lib user is
PolyHash. Maybe we can create this in a cleaner manner too.