Add support for socket based connections in PostgreSQL
Value should be a js string but was not being encoded as such.
first,  is sometimes an integer so don't json encode it then. Second, if it's not an integer, it might be a string with unwanted leading spaces so trim it, and json_encode it. Third, it's going in an html attribute so escape the quotes and any other special characters.
Merge pull request #5077 from okonomiyaki3000/media-manager-select-a-directory-bug

Value should be a js string but was not being encoded as such.
Move multilang module from mootools to bootstrap. Fixes #4575.
Merge pull request #4281 from mbabker/pgsql_socket

Add support for socket based connections in PostgreSQL
Squashed commit of the following:

commit 777dff4494f760f39b6c9168b2b6d66e3c6d0142
Author: Dimitris Grammatiko <mit505@upshift.gr>
Date:   Mon Nov 10 08:20:07 2014 +0200

    This line shouldn’t be there!

    Thanks @smanzi for spotting that!

commit 0b490769a9eec4de79595d59f467d2a2fb9faf28
Author: Dimitris Grammatiko <mit505@upshift.gr>
Date:   Sun Nov 9 09:20:53 2014 +0200

    TODO Redisign this page so on modal save we get the new values

commit 2d3dcb9e1c7c0f91559747c972142862eb390f77
Author: Dimitris Grammatiko <mit505@upshift.gr>
Date:   Sun Nov 9 08:40:12 2014 +0200

    Check out properly

commit af4faf83fdb4d018dae83adca1cd077ba44b5c39
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 22:09:28 2014 +0200

    Hathor compatibility

commit cb0153a547f91cf1ce57ff06ca6333aa59f7b585
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 19:29:55 2014 +0200

    Reduce the height of modals to 500px

commit 57d92ea050bd2f71a88934fdcfad99a57b6760f0
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 18:58:02 2014 +0200

    revert foreach...

commit 64bc8595cca27d1a668d9db140747c7144e8e6dd
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 18:52:14 2014 +0200

    CS

commit 6c8ec4495e57a519c3490425cf4c884c13961fca
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 18:51:47 2014 +0200

    CS

commit 0d5fc1cec2ec0e942c3fca6dffe5c1dd3b7b16b2
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 18:45:08 2014 +0200

    wrong selector

commit 8d12484479db3873377e72700067a4ef04d0b79d
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 18:17:00 2014 +0200

    Fixes

commit 59600265e0d143b5bfaee2c529d333b6993f992b
Author: Dimitri Grammatiko <mit505@upshift.gr>
Date:   Thu Nov 6 16:48:15 2014 +0200

    Rebase messed up here

commit 6627542e22897d9706b22022327d749cd844d4c3
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 16:44:12 2014 +0200

    Revert "[fix] Multilanguage: Checking proper default menu item. Fixes #4994"

    This reverts commit 70261c909155c6300534f75dc5b4589c48337d78.

commit 0607156e2d07baa218fead4c059af136ab5cc21d
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 16:43:47 2014 +0200

    Revert "Adding a missing file from #4240"

    This reverts commit 3b312cfe169b94ea4c9c9b9d4b8b2fe32b8038a6.

    Conflicts:
    	plugins/editors/tinymce/fields/skins.php

commit 897723ea7c30ae42161ccb75a9824d7b9f855407
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 16:42:56 2014 +0200

    Revert "Notice - typo"

    This reverts commit 842d95bb00df5d17f65357da8382396cf303aeaa.

commit f4bbdc899bd4a4ede9af768814b6f3308852ffc7
Merge: 7117b04 5540ae3
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Thu Nov 6 16:40:55 2014 +0200

    Merge branch 'admin_menu_module_modals_2' of https://github.com/dgt41/joomla-cms into admin_menu_module_modals_2

    Conflicts:
    	administrator/components/com_menus/models/fields/menutype.php
    	administrator/components/com_menus/views/item/tmpl/edit_modules.php
    	administrator/components/com_menus/views/menus/tmpl/default.php

commit 7117b04c86d624fdb50abb386d8be0b3ebb28950
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Fri Oct 17 16:14:02 2014 +0300

    Notice Undefined property

commit bd129614e11ac7bf8f37cd8f3452a23a6a41f0e7
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Fri Oct 17 15:21:55 2014 +0300

    Fixes

commit 8cca89706b85ff91556389b86300ceebf6730fed
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Tue Oct 14 17:15:28 2014 +0300

    LESS

commit ac354383b2a29d6a885b6f13d8dec439208139e6
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Mon Oct 13 23:15:40 2014 +0300

    Move com_menus modals to Bootstrap

    #### Move modals from mootools to Bootstrap
    This is the last (I hope) PR to get all back end using bootstrap modals. The rest are: #4513 #4514 #4561.

    Testing:
    Apply patch and follow the images below to see where you should focus:
    ------------
    administrator/index.php?option=com_menus&view=menus
    ![screenshot 2014-10-12 06 35 39](https://cloud.githubusercontent.com/assets/3889375/4604953/16944584-51c2-11e4-93a2-d6b851a7d117.png)
    ![screenshot 2014-10-12 06 35 53](https://cloud.githubusercontent.com/assets/3889375/4604954/1d578ac0-51c2-11e4-9552-4d3e1407e0e6.png)
    -------------
    administrator/index.php?option=com_menus&view=item&layout=edit&id=101
    ![screenshot 2014-10-12 06 36 12](https://cloud.githubusercontent.com/assets/3889375/4604956/393e0fb6-51c2-11e4-9c80-b481b2051609.png)
    ![screenshot 2014-10-12 06 36 24](https://cloud.githubusercontent.com/assets/3889375/4604959/4f4465b2-51c2-11e4-968c-0289526c970a.png)

    ![screenshot 2014-10-12 06 36 36](https://cloud.githubusercontent.com/assets/3889375/4604960/53ad4e48-51c2-11e4-8a97-dac4d0c04482.png)
    ![screenshot 2014-10-12 06 36 46](https://cloud.githubusercontent.com/assets/3889375/4604961/569be2ae-51c2-11e4-87a5-e4ac6bdf44cf.png)
    ———————

commit 5540ae362cf0216e74d25f845292d388bc6f7d9d
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Fri Oct 17 16:14:02 2014 +0300

    Notice Undefined property

commit 623f1d46fd2493fb43924da63edd5fb089aa5dbe
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Fri Oct 17 15:21:55 2014 +0300

    Fixes

commit 29c60aaad79ec9610deb9f15b74697ba0317e9d6
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Tue Oct 14 17:15:28 2014 +0300

    LESS

commit 71d22a393c674339911e99e0a523f2738e548381
Author: dgt41 <d.grammatiko@gmail.com>
Date:   Mon Oct 13 23:15:40 2014 +0300

    Move com_menus modals to Bootstrap

    #### Move modals from mootools to Bootstrap
    This is the last (I hope) PR to get all back end using bootstrap modals. The rest are: #4513 #4514 #4561.

    Testing:
    Apply patch and follow the images below to see where you should focus:
    ------------
    administrator/index.php?option=com_menus&view=menus
    ![screenshot 2014-10-12 06 35 39](https://cloud.githubusercontent.com/assets/3889375/4604953/16944584-51c2-11e4-93a2-d6b851a7d117.png)
    ![screenshot 2014-10-12 06 35 53](https://cloud.githubusercontent.com/assets/3889375/4604954/1d578ac0-51c2-11e4-9552-4d3e1407e0e6.png)
    -------------
    administrator/index.php?option=com_menus&view=item&layout=edit&id=101
    ![screenshot 2014-10-12 06 36 12](https://cloud.githubusercontent.com/assets/3889375/4604956/393e0fb6-51c2-11e4-9c80-b481b2051609.png)
    ![screenshot 2014-10-12 06 36 24](https://cloud.githubusercontent.com/assets/3889375/4604959/4f4465b2-51c2-11e4-968c-0289526c970a.png)

    ![screenshot 2014-10-12 06 36 36](https://cloud.githubusercontent.com/assets/3889375/4604960/53ad4e48-51c2-11e4-8a97-dac4d0c04482.png)
    ![screenshot 2014-10-12 06 36 46](https://cloud.githubusercontent.com/assets/3889375/4604961/569be2ae-51c2-11e4-87a5-e4ac6bdf44cf.png)
    ———————

Conflicts:
	administrator/components/com_menus/views/item/tmpl/edit_modules.php
	administrator/components/com_menus/views/menus/tmpl/default.php
	administrator/components/com_modules/views/module/tmpl/edit.php
sync
small changes