Small inconsistency in version naming in upgrade

Signed-off-by: emanuele <emanuele45@gmail.com>
Missing quotes in upgrade

Signed-off-by: emanuele <emanuele45@gmail.com>
Elk now uses the custom_fields_data table and not the themes

Signed-off-by: emanuele <emanuele45@gmail.com>
Avatar redimention should use max-width/height to avoid streatching

Signed-off-by: emanuele <emanuele45@gmail.com>
A tweak to integrate_bbc_codes. I may need it. *angeleyes*

Signed-off-by: emanuele <emanuele45@gmail.com>
Restore the central hook for areas

Signed-off-by: emanuele <emanuele45@gmail.com>
Tweak the hook

Signed-off-by: emanuele <emanuele45@gmail.com>
Tweak to fix the attachments - thanks Aggelos for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1638 from emanuele45/upgrade_fix

Some fixes for the upgrade process