Update for Knockout 3.0 support. This breaks 2.x support and includes an interface change to the apply function.