Huge Zencoder, MediaFile, and Previews refactoring

Squashed commit of the following:

commit e88184d41d72988fc398abd858534b1aa3ccd967
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 15:50:23 2013 +0100

    fix sebastians syntax

commit 3eb9a7d8e340784a967e11ec73976f4c16336353
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 15:48:00 2013 +0100

    reverting branch for cap deploy

commit 37d94c2c4568ed423ecd966436801a7f43a88647
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 13:38:59 2013 +0100

    Removed Junk from media_file

commit 8c1ed920dbf4619238e847bfc2a0b59877df49c8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 11:33:32 2013 +0100

    trying to find migration problem

commit a4c0c8fa81611cf4d00a01346b0a9c0c56b5625f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 09:23:15 2013 +0100

    Changes for ci
    updated gitignore

    Updated jenkins_slave setup

    Updated ruby version on ci

    Fix in script

    ahhhhr

    ci rubygems updater

    CI executing creator and aggregator on bicmacs

commit ceb98bcf45aba085578849ba2f05a147add40cf8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 09:49:49 2013 +0100

    Fix media_file most_recent_zencoder_job

commit 4455b56056b7acc6313297900e7ac06158f8cf9c
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 27 08:37:15 2013 +0100

    cleanup

commit b9e517a7e6f61b10cb365b49191137a3d407bc35
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 16:16:49 2013 +0100

    Fixed import_controller zencoder job spec

commit 85a9fe6613622ab8df943673ee660a3fa269450d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 15:50:35 2013 +0100

    restored the new relic gem for production

commit b04d979726640b0163dc988544382a7fe8caff11
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 15:44:32 2013 +0100

    Removed oldencode job

commit 4ddb554d7a792dfd8f7b0250a380e6b13a2ba6c5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 15:43:49 2013 +0100

    Cleaned media_file

commit 6de1f1fa62b45d1983d373ef225390cc6e159614
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 15:41:08 2013 +0100

    Cleaning audio previews  display

commit bc85985686dd41dd7df50bcc864a0043f10b16ad
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 14:47:08 2013 +0100

    wtf

commit 6549064ce1a163e9201b9d21d378ca31aff9c7a4
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 13:53:30 2013 +0100

    Changed login feature test

commit a8e0e6cab06e96430b9e804019c36b1061da0735
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 12:49:38 2013 +0100

    New notification_url for zencoder_job

commit bf60008b3a37a32d92cc52d02cfed809371d0b0b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 12:02:40 2013 +0100

    Tracking url creation problem in production?

commit 6b80b7d096e68b3dfd3761b32b1dcd917167b8b5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 11:14:12 2013 +0100

    Fix redirect in preview

commit 4187fdc77c9eaf6430728124cb7ce8cdd19dfe19
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 10:58:10 2013 +0100

    Git ignoring /public/previews/

commit 71fa746cd5f737c720f3f8e951e18156f0171b89
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 10:41:58 2013 +0100

    creating symlinks for previews

commit 21c048949bc8a4595c629afeb588351e813fef86
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 26 09:09:51 2013 +0100

    Using redirect for video preview

commit 14fab5a79c3fea59f5a007d6bf613d843e7284b7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 25 15:51:49 2013 +0100

    Using preview instead apache http to serve video previews

commit e3d3658f8c69b99b95d6e9779e9977a62e820b70
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 25 15:47:35 2013 +0100

    Cleaned code in media_files_controller

commit 25fefc76f141e5808815898dca57a47602d3719a
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 25 11:37:14 2013 +0100

    Testing reencode action

commit 15bf64a27d388b42f5fc767ff48cbd24a4b18bd0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 25 09:11:07 2013 +0100

    Changed feature test for regenerating previews

commit fef930af88b61608324f87cd2f35250003822020
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 25 09:05:41 2013 +0100

    Progressive dropdown-menu for media-entry

commit ee3f93fe4743e6f604bb04b5181ae62c7d8c3e3d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 16:16:34 2013 +0100

    Improved admin interface

commit 60ad83874ec89e4e4c063b3bd8c33bc486eb5d66
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 16:05:50 2013 +0100

    Finished creation of all previews

commit f9aa0b67d0ca32d9ac16967270280568dc639261
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 15:37:31 2013 +0100

    More resilient ZencoderJob when there is no config

commit 65cb0c56810eb4afed3951339ebb0f9d3747ae3d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 14:52:34 2013 +0100

    Fix import_metadata feature

commit 1d106cbe03d5766c6bb3d9e6b72dea90bb4aa71a
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 14:40:56 2013 +0100

    Added feature test for importing an movie

commit f343470772c6f91388c917709fdbae3557e8f808
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 13:47:49 2013 +0100

    Refactored zencoder.job

commit a4b2ed77e03d5b387be3e637e8918498cabe90a1
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 11:20:34 2013 +0100

    Added feature test for recreating previews

commit 446bde9db374e32d630dae4cee2b44c62e611a70
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 10:34:51 2013 +0100

    Implemented recreation of media files

commit 75ec30b41ee2326f53643e267ea560fad18319be
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 10:08:58 2013 +0100

    wip

commit d6719d265eee2438da6183c4d1736e9df76999ba
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 21 10:04:36 2013 +0100

    Added link to the admin inteface of a media_entry

commit 0288811a5015be627599954f5257acb26928504b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 20 15:52:57 2013 +0100

    Added buttons for recreate actions

commit bddeebff8e1adaac8abec14427ac35ad6444cfe7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 20 14:01:34 2013 +0100

    Filtering admin media_file

commit 66f955ad2312e1d423c0a7eae8931f7114c5df4d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 20 11:19:02 2013 +0100

    wip active admin

commit 31ff7294d7f9c795a7a0b08e72b0be1b65f76642
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 19 15:50:17 2013 +0100

    Zencoder: submitting and importing audio previews

commit f2e24685cbcf2d320b2c2f269a9979e5d62dac32
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 19 12:38:01 2013 +0100

    Fixed import

commit e5b3c9c298dfa3735da470cf9e36d20bc4d729a8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 19 12:14:14 2013 +0100

    Rewrote zencoder test

commit 6f2f5e5aa70ada470ff9983311eb2a0b922f2d01
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 19 09:52:02 2013 +0100

    fix

commit 501f41b562b702a9ec0831a46f5dc0d428795cbd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Feb 19 09:49:43 2013 +0100

    Refactored migration

commit 606b52f5a31e083e3506ce5805454f682a96b654
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 18 15:52:04 2013 +0100

    Video import production test candidate

commit a4ebf80dac2f2c6c95781b315827021ef95d88b0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 18 14:35:26 2013 +0100

    wip ...

commit 414c4d1b62baf2aacfbab64455ea9e9bbd0c7aa1
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 18 14:10:19 2013 +0100

    Deleted helper for thumb ....

commit a40dff81ba5970fa14595f139b1f903fb0dd9e44
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 18 14:09:46 2013 +0100

    Previews

commit 0232f42ba4cea6cbadc73be79062539c872fd148
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Feb 18 11:43:10 2013 +0100

    getting thumbnails works

commit 7901be2d300206c03db38dbdb36037dc15d98ca4
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 14 19:30:11 2013 +0100

    Wip creating preview for movie

commit 60c5564654515192449fb405623ac1d48fa673a2
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 14 15:12:38 2013 +0100

    Added spec for zencoder controller

commit 0c9d2afd0863390c3a2de81abaa188d7fb1b7920
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 14 14:55:05 2013 +0100

    fixed spec

commit dd931748ecab827b8577d7e859ba26852821fb47
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 14 14:35:57 2013 +0100

    Fix for spec

commit 7bc7aea40805c70933b2987d8d5f22c5b8454793
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 14 14:13:02 2013 +0100

    Fix spec for zencoder

commit fdd626ab428fd53e6047d36265227fc1aff074c5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Thu Feb 14 12:50:03 2013 +0100

    Submiting zencoder dev job

commit 1e2a507cc6932138931d4f1717d7029466956492
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Feb 6 09:50:44 2013 +0100

    WIP ZencoderJob squashed
    Created ZenconderJob model

    wip

    wip building zencoder requests seems to work

    wip

    wip ZencoderJob will be created for media_file

    Added MediaFile and ZencoderJob to AdminPanel

    Saving request

    comment

    some TODO notes

    wip zencoder refactored

    Moved JsonSerializer into own path

    wip new spec, moved ZencoderJob creation

      to import complete action

    wip submitting

    wip

    wip zencoder testing

    Fixed dep in Gemfile.lock