Refactor flash activation
Consolidate page setup
Fix erroneous field focus
Read complete error message not only the header
Remove superfluous script
Fix flash selector
Fix spec for Ruby 2.1
Remove deleted asset from precompilation list
Fix error message css
Focus erroneous field first

This prevents that browsers ignore info/error messages.
reimplements context_menu with jQuery
Add ng context menu
Sketch ng context menu integration (WIP)


TODOs:
- Build context-specific menu on click
- expand menu above cursor position if on bottom half of the page
Begin replacement of server-rendered context menu

Removes WorksPackages::ContextMenusController, its views and specs, and
ContextMenuHelpers.

This patch begins the work needed to serialise a given WorkPackage's
'actions' in the v3 API response, based on a user's permissions. This
should support a client-rendered context menu (or any other contextual
UI for that matter).

Much code was simply copy-and-pasted from ContextMenusController into
Api::V3::WorkPackagesController. This code still requires considerable
refactoring and optimisation.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Remove tangential code from WorkPackagesController

This code now belongs elsewhere, e.g. ProjectsController.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Add view spec for projects RABL templates (API v3)

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Add embedded objects to Project resource (API v3)

Initially possible_assignees, possible_responsibles and types are
needed for assembling a context menu.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Remove unused assigns in work packages view spec

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Update ng context menu integration after customizations (WIP)
Fix test setup of ng work packages controller