Huge codebase cleanup

Squashed commit of the following:

commit 899adf4f353e0110c99fd5589b584fde585be12f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 16:08:08 2013 +0100

    More cleanup and restored find random

commit c7783b994d384fbe13d94efec5fb57083f8b4042
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:59:14 2013 +0100

    Cleaned Factory stuff

commit cade8d560dc06882fe6c9f1c96f2b81ff4f30453
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:48:38 2013 +0100

    Removed specs for constants

commit 804816fc685c81bfd213f789292a08f602ac271f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:45:55 2013 +0100

    Removed mysql and adapter dispatching support

commit ff69305525e73c7ff5665dce441e6cfcb8fe73a4
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:35:08 2013 +0100

    Deleted migration_helpers

commit e42b6893af4b0d18b03ec3d9f47584ee287a2a04
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:20:14 2013 +0100

    Removed mysql support specific

commit 8ce03333de988d936811643c5790a42ae6eb7688
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:14:53 2013 +0100

    Deleted some constants

commit c7db8c5a24c96fe6898011df9682b94a576c146d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:05:09 2013 +0100

    Deleded unused spec files

commit 7b95f903a8dc75d55f25ae098c2943d5b3f70e7a
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 15:01:49 2013 +0100

    Deleted meta_contexts_helper

commit f4405b1703589850d8ae4de799a13008467c1298
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 14:57:36 2013 +0100

    Deleted permission_helper

commit 187f8125bb23e9628a51f66217443d8b0611187b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 14:37:29 2013 +0100

    Remove meta_data_helper

commit 999bb104b40f06da088e1e6c886de4f9219a945e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 14:28:32 2013 +0100

    Remove Wiki/irwi stuff

commit 9f2d1cbbdc3360ca9ef536bfa02c99b4c746de67
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 11:12:47 2013 +0100

    Restored two helpers in media_entries_helper

commit ac4e77b7e6f0f8541219d447c2914b1186581ab2
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 10:41:30 2013 +0100

    Delete helpers related to media_resources

commit 008d0d1569c45ba8dc703727fee4ec9e2150d9c7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 10:34:40 2013 +0100

    Deleted application_helper

commit aac53eb749af52bd981d1c1626403bf3f81ec8b9
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Mar 22 10:25:03 2013 +0100

    Deleted things marked with OLD