MH-10482, Switched Encoding Settings for Composite/Concat

This patch changes the encoding settings used for the concat and
composite workflow operations. In particular, the changes are:

 - Increased video quality
 - Faster video conversion
 - Lossless audio

The changes will cost some space, but even with the recent settings,
files couldn't be published like this. Thus size doesn't matter as the
will be re-encoded for distribution anyway.

One nice side-effect of these changes is that the license problems with
faac shouldn't matter anymore as it's not used anymore and we can get
rid of it. That also means less dependencies.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10489, Switch audio encoder for videoeditor

As faac is not available on all systems, this patch will switch the
default audio encoder for the videoeditor to ffenc_aac which is avaiable
on all supported systems (tested Ubuntu 12.04, CentOS 6, CentOS 7 and
Fedora 20) as part of the gstreamer[0.10]-ffmpeg package which is
required anyway.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10503, Inconsistent Workflow Titles

The titles of some workflows are inconsistent. For example “Retract
media package” should be something like “Retract Media” (Uppercase,
prevent whole sentences). Additionally, there are some typos like
“Youtube” instead of “YouTube”. This commit fixes that.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10505, Preview Video for Captioning is Dependent on Videoeditor

The preview video was not generated if the video editor was not
selected. There were also JavaScript code remains of the former
algorithms to determine if a preview needs to be generated left. This
commit will fix that problem by always generating a preview video. It
will also fix MH-9353 as the special property is not necessary anymore.

The downside of this patch is that it might make the default workflow a
bit slower under certain circumstances, but in exchange it is much more
robust which I guess is what we want for this workflow (optimized for
robustness and features, not speed).

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10505, Fix Caption Preview Player

The caption preview player selected the preview video not only by its
flavour but also by a hardcoded mimetype value. Additionally things like
the advanced player link should not be displayed and the controls should
never be hidden.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Merged in lkiesow/matterhorn/t/MH-10489-videoeditor-audio-encoder (pull request #315)

MH-10489, Switch audio encoder for videoeditor
Merged in lkiesow/matterhorn/t/MH-10503-inconsistent-workflow-titles (pull request #320)

MH-10503, Inconsistent Workflow Titles
Merged in lkiesow/matterhorn/t/MH-10505-preview-for-caption-upload (pull request #321)

MH-10505, Preview Video for Captioning is Dependent on Videoeditor
MH-10516, JavaScript Error on welcome.html

The JavaScript on the welcome page still expects the removed analytics
parts of Matterhorn to be available which leads to errors. This patch
cleans up the welcome page.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10477, Use objects instead of "Associative Arrays"

Because Arrays are extended by Array.prototype function names can match expected keys.
Deleted duplicate arg check as objects won't allow duplicates.
MH-10515, User Might be Redirected to JSON files after Log-in

Under some circumstances users will be redirected to some JSON data
after login. The reason for this is that MH remembers the first page
that was requested without log-in and redirects the user to that page.
If a user was on an admin page that periodically requests data and the
log-in times out (there are several reasons for that to happen), the
first page that is requested is some data and the user will be
redirected to that data instead of a ui.

This patch will fix this behavior by accepting redirects only to a user
interface (URI contains “.htm”). This simple heuristic should be
sufficient as it should cover nearly all cases and the worst thing that
might happen is that the user will be redirected to the welcome page
which is far better than to end up in some kind of JSON data.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10488 Remove out-dated information about Bamboo build server

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10477, removed trailing spaces from my changes and elsewhere
MH-10477, added trailing ; to fn definitions
MH-10365, Disabling YouTube actually disables Metadata Editor

This fixed the issue by providing the YouTube editor with a unique id.
It also fixes the notation of the name YouTube.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
MH-10527, close http response after use
Merge 't/MH-10527-ingest-download-handler' of jperrin/matterhorn into r/1.6.x
Merged in lkiesow/matterhorn/t/MH-10482-no-faac-in-encoding-profiles (pull request #303)

MH-10482, Switched Encoding Settings for Composite/Concat
Merged in lkiesow/matterhorn/t/MH-10516-js-error-on-welcome-page (pull request #329)

MH-10516, JavaScript Error on welcome.html
Merged in lkiesow/matterhorn/t/MH-10488-remove-bamboo-from-main-pom (pull request #330)

MH-10488 Remove out-dated information about Bamboo build server