Use correct variable for squid Y motion. Fixes BUKKIT-2648
Don't filter item data for anvils. Fixes BUKKIT-2640

Filtering item data is usually a good idea to make sure we don't have
invalid data or data on items that shouldn't have it. However, anvils
use item data in slightly different way and so running its code for
filtering here causes the data to be corrupted.
Clamp difficulty levels to prevent invalid values

Some features added in 1.4.2 use the difficulty value as an index to an
array so while before having it set to an invalid value would do nothing
or maybe cause an odd side effect somewhere it now crashes the server. This
patch ensures difficulty values are clamped between 0 and 3, inclusive.
Update PotionEffects on player death. Fixes BUKKIT-2673

On player death player PotionEffects need to be updated so that a player's
invisibility and other effects are removed, otherwise they will persist
after a respawn. This is a carry-over from our use of persistent player
entities.
Prevent health from wrapping around.
Add isHardcore API to check if the server is in hardcore mode or not. Adds BUKKIT-2707
Drop skulls like every other block. Fixes BUKKIT-2678

Instead of having a special case for skulls just use the normal logic for
breaking a block. This avoids issues when interacting with API.
Fix bug preventing non bed-reliant spawns from being successfully set. Fixes BUKKIT-2708
Get skull data before destroying block. Fixes BUKKIT-2723

Skull blocks store their type in a tile entity and use their block data
as rotation. When breaking a block the block data is used for determining
what item to drop. Simply changing this to use the skull method for getting
their drop data is not enough because their tile entity is already gone.
Therefore we have to special case skulls to get the correct data _and_ get
that data before breaking the block.
Revert changing EntityType.FIREBALL to LARGE_FIREBALL
Expose API for giving and taking experience levels for use with ExpCommand's new behaviour with Minecraft 1.4. Adds BUKKIT-2739
Update map cursors to reflect 1.4 changes. Fixes BUKKIT-2740
Expose API for clearing a player's inventory with a successful count
return. Adds BUKKIT-2745
Disable portal support for entities for now. Restore allowNether check.

Relates to:
BUKKIT-2695 BUKKIT-2675
[Bleeding] Prevent players from appearing to be sneaking after they change dimensions whilst doing so.
Remove Anvil debug. Fixes BUKKIT-2732
[Bleeding] Implement new Hanging events. Adds BUKKIT-2754
[Bleeding] Fire damage is no longer a valid reason for hanging entity removal
Implement the API for ItemFrames. Adds BUKKIT-2668
Hook command block up to ConsoleCommandSender. Fixes BUKKIT-2684

This will need to have its own CommandSender but this makes command blocks
work for now with any command console can run.