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
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.