Added _write_connection property to Model_Crud to support replicated database setups

Another change to support replications. This adds a property to Model_Crud as well as replaces all instances of 'isset(static::$_connection) ? static::$_connection : null' with a call to a new method Model_Crud::get_connection(). Also added a basic unit test to confirm that get_connection() works correctly.