Revert "Show all Compute Resources if Compute Resource user filtering is not in use"

This reverts commit 6bc745327d0e354c695eaef61162e54b9b198780.
fixes #1637 adds spice support

added vm name and cursor release instruction to the spice console title.
this is a follow up to commit:057d497
fixes #1962 incorrect value returned when on the fly ldap is disabled
fixed wrong old hypervisor migration refs #1957
fixes wrong method name, #refs 1957
This commit adds most of the functionality required for API v1

The overall goal was to extract the existing JSON response
overall controllers, and to move them to a seperate name space.

* documentation was added to all requests (available under /apidoc)
this include same request and response generated using
    APIPIE_RECORD=examples rake test:api
* Also Fixes #1800, fixes #1419, fixes #981 and fixes #1774

whats missing:

1. Permissions checks for all new controllers
2. Nested routes (e.g. /hosts/id/reports)
3. running tests with oauth/basic_auth (instead of as_admin {get /})
adds foreman versions to response headers
do not report internal state over api
Added header to foremancli calls to call API version 1
fixes #1961 Adding JSONP support

When using cross-domain requests, it is impossible to read the response
data, and process it.
Using JSONP allows a client, from a specific domain (for example
/domain1), to query data in another doamin (/domain2), and analyze it,
using a callback.

Such a request would be followed by "callback=" parameter. For example:
http://foreman-server:3000/statistics?format=json&callback=analyzeStats

And the response would be:
analyzeStats({"statistics":{"mem_totfree":0.0,"arch_count":{},
"env_count":{},"cpu_count":{},"mem_size":0,"swap_size":0,
"model_count":{},"mem_free":0,"swap_free":0,"klass_count":{},
"os_count":{},"mem_totsize":0.0}})

which will call the analyzeStats callback.
Whereas a regular request,
http://foreman-server:3000/statistics?format=json, will just contain the
JSON data.

More reading on JSONP:
JSONP - http://en.wikipedia.org/wiki/JSONP
JSONP Ruby impl -
www.simb.net/2012/02/06/ruby-and-jsonp
https://github.com/crohr/rack-jsonp/
Fixes #1968 - Fix require paths for tests with new config/settings.rb
smart proxies api - filtering by proxy type
subnets api - removed required constraints from fields in update

The required constraints were blocking partial updates.
set apiadmin user in headers before api controller tests
Fixed 1972: Supporting search hosts by uuid

This patch adds support for searching hosts by uuid.
It is useful when you have the uuid of a virtual machine, and want to
get the Foreman host properties.
fixes #1915 - initialise Puppet in master context

Explicitly specify the run_mode as being 'master' to ensure the config is
parsed in a puppetmaster context.
Fixes #983 - implement 3 state boot
Add organization and location to foreman.

This feature allows foreman to provide multi location, multi tenant and
multi organizations capablities.

the idea is that resources within foreman (e.g. hosts, subnets, users,
environments etc) can belong to one or more locations and organization,
effectivily hidding resources from users.

Organization may contain multiple locations, and Locations can belong
to multiple Organization, this is an extermily flexiable design,
however, it is up to the user to allocate the resources across the
organizations and locations.

When creating new hosts, the resources that can be consumed are only
resources in which exists in both the currently used organization and location.

fixes #1578
fixes #1593
Ensure existing org user search is unscoped

refs commit:611f5bff
fixes #1976 - fix path to Puppet to /usr/bin