Fix the majority of problems with the update-copyright script
- /bin/bash is just bogus
- [[ is not portable
- use mktemp instead of $RANDOM
- find could not possibly have worked
- use gsed instead of sed even instead of fixing the non-portable
  features
Status changes from Equipment showing

This pull is to change the current item / equip bottom window. It now
shows the modifier for the status effected by the equipment.

This is meant to be a pull pre-Bertram's Equipment info changes, to help
integrate into his changes better
Merge pull request #139 from IkarusDowned/equip_battle_effects

Status changes from Equipment showing
Fixed new game due to recent change. -.-'
Misc and small code cleanups.
Fixed the crash happening when quitting the game during a transition to battle.

While digging around something I'll push in the next commits,
I found that the BattleMode singleton instance was set in the reset() function
leading to the fact that when it was freed before being initialized and reset,
the finish supervisor would make the game crash due to calls to that instance.

I made sure the transition to battle would free the battle mode if it was destructed
before passing to the game mode manager and fixed that crash by setting the instance
in the battle mode constructor, as no more than one battle at a time will happen anyway.

Sorry Ikarus, I know you wanted this one but since I saw it, I fixed it.
Hope you don't mind ;)
Removed some shop dead code.

If we add it back, I'd like it to be thought with a fresh way.
Merge pull request #137 from grimreaper/master

fix update-copyright script bugs
gsed -> sed

gsed doesn't exist on Debian so I've reverted that part.
Merged big parts of the GmaeModeMedia class into a GlobalMedia one.

This will load the most common files used in the different game modes
instead of loading/unloading them when changing the game mode.

I also made a few misc code cleanups while doing it.

I didn't completely removed the GameModeMedia classes as certain
ressources there were still specific to their game mode, such as
the battle background, music and so on.

I also simplified the way status effect icons are queried, avoid
the use of an extra map for it.

I didn't touch the menu mode yet, as I'm not sure of what will change
for now. I did that before playing with the menu mode as it will
much easier to query status effect icons now :)

But this is IMHO sufficient to close #121.
Fixed all the map transition events I forgot to update.
Made the game follow standards for the settings and the save games.

I also created two functions copying the files from their old locations
so people won't worry about it.
I tested this both on windows and linux, OSX wasn't actually
impacted by the change.

I also made the game setup the stting and user data path only once,
not on each requests.

On unices, now the save games will be at ~/.local/share/valyriatear
and the settings in ~/.config/valyriatear

And on windows, both will in:
Documents and Settings\User\Application Data\ValyriaTear

Closes #9
Upgraded the shop mode equipment view.

I also fixed a crash when adding a key item to trade.

Now the equipment view will be able to properly display
the elements, the status effects, the shards, and the item stats.

I'll use this as a base for the menu mode.
Changed a sound name while thinking about it.
Misc sanity checks in equipment data loading.

- Items without icons aren't invalidated anymore.
- Items will be capped to a max of 5 shards.
(Note that the shards data will only be loaded for equipped items.)
- The loader will check for opposite status effects.
Fixed skills cost scrolling in the menu mode.
Made the editor use the former rule about collisions.

The new rule about making a passable overwrite a blocker was causing
more troubles than solving things, so I reverted that to simply
block as soon as there is a blocker.
Show more items in inventory view.

The inventory is the view that will likely have the more items,
and the fact of showing more items per screen feels more practical
to me and gives a sense, for instance in showing
the current item icon in the bottom window.
passive effects from equipment applied

equipment now gives "passive" application of status to your character!
An easy way to try this out is to simply add a extreme strength modifier
to the Arbalest, and watch Kayla do some SERIOUS damage!
Merge pull request #140 from IkarusDowned/equip_battle_effects

passive effects from equipment applied