bug fixing

Squashed commit of the following:

commit 69edde9083c08fc8d3aea7478da5d215dd26e4f3
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Dec 13 17:36:45 2012 +0100

    ignoring /.idea/

commit 418d38e675be76f8bcdb352b0593be2055bc0a27
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Dec 13 17:32:22 2012 +0100

    [FIX CI] still fixing steps

commit f978bc24bd74c2f232f49399d178335cb2e03096
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Dec 13 16:51:25 2012 +0100

    [FIX CI] fixing cucumber steps

commit 07525db7559f2a8ab739a043492c13c60d3ef268
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Dec 13 11:46:40 2012 +0100

    updated personas sql dump

commit 971f2b52d97d752c3ddc347c6af6c6d3626f080d
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Dec 12 23:05:00 2012 +0100

    [FIX CI] fixing steps

commit 48b8b1d8f257bd6312acf3970d92072dcf4b5426
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Dec 12 21:51:27 2012 +0100

    [FIX CI] media_set cover and filter_set javascript scenario

commit c9afcbc586c87cdcdca3f99023680bba310cc07c
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Dec 12 16:50:36 2012 +0100

    nofollow option on auto_link

commit 12bad3d580e1ec1fc599a46333b6559c1f62e397
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Dec 12 16:26:34 2012 +0100

    [FIX #29124357] escape html before auto_link

commit 8f26d5a75610621f75feccb229c0a2d60a0c3ec0
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Dec 12 12:19:43 2012 +0100

    cleanup old code

commit 04d57778cf33b044809f5c23ff6c0851bb0af8b6
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Dec 12 12:05:06 2012 +0100

    Admin: display groups scope on people list

commit fc165a3c8a3b2b9ce374f2983bcb9e54b21c9442
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 16:08:06 2012 +0100

    [#31895985] missing permission check on the view template

commit a6f871aeb9abe5688b6ee540e88acffb9eed0cd5
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 15:30:14 2012 +0100

    initializer for array with kaminari support

commit 45651c44947c2a12338c4498c7d598dc3ae20448
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 15:00:16 2012 +0100

    Admin: generic search for media_sets

commit 99a991e1b33b462aae56e21e31e57aad969ba295
Merge: 5b9a855 49788fb
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 13:19:39 2012 +0100

    Merge branch 'next' into FS_bug_fixing

commit 5b9a855ac7d98bf37f7a72517797d69fe2c90ebb
Merge: f542b40 1a06234
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 13:18:07 2012 +0100

    Merge branch 'FS_optimizing_queries' into FS_bug_fixing

commit f542b40db65ae01d2b13efef720db784013a7f67
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 11:15:35 2012 +0100

    Admin: fixing scope counter

commit 34f258a15241956c2e8f808921877ad700b65ef0
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 11:14:46 2012 +0100

    cleanup old code

commit 28d71724098940cfc322cd844385deb77d63ae9f
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 11:14:27 2012 +0100

    replacing will_paginate with kaminari

commit 1a0623432459ebcc4b1a73a3a6f967cb35cae451
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 01:32:00 2012 +0100

    refactoring meta_data for_context as association nested method

commit ea73b810f9152903df45fb4e4168723ca6ad64b6
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Dec 11 01:19:41 2012 +0100

    removing old unused code

commit 297d7e126c09095b58c099d784d41d9d8c32d0fd
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Dec 10 20:29:11 2012 +0100

    refactoring sql queries, not using to_sql into the where conditions anymore