Rewrites permalinks without category slug

This rewrites URLs to remove the category slug. It looks like this is hardcoded specifically for the default category taxonomy, so should probably be fully abstracted, but solved my limitation with this plugin, so figured I'd share. 

I'd ticketed this as #22

Source: http://github.com/mines/no-category-base-wpml