format_user_name helper; user.name calls .strip

Adds a format_user_name helper to display login name in the event
that the user's name is empty (possible with LDAP).

The .name method on user calls ".strip" to eliminate a trailing
space if the user has no last name (possible with LDAP).
Update UI to show user.login if user.name is unavailable

This intentionally only changes instances where this is expected
behavior, but not in a table where we list login name and real
name separately.
Correct typo in Provider API specs
Removes default provider_type_id for Providers

This removes default value from provider_type_id column in providers
table.
That default makes no sense.
Adds ProviderType validation for Provider model

for case when Provider is created with provider_type_id but no
ProviderType exists with that id. This can happen only via API unless
someone is hacking forms in UI.

Adds en translation for validation message.
Solution for BZ848472

This is solution for BZ848472.
Changes what is provided from params to Provider.new in
parse_provider_type method in ProvidersController
BZ 801527: wrong error message when imagefactory is down

https://bugzilla.redhat.com/show_bug.cgi?id=801527

API:
* new API exception ServiceUnavailable
* rescue for ECONNREFUSED when imagefactory is down
Proper error when Imagefactory is down
Merge pull request #27 from n1zyy/bz_843932-username-display

BZ 843932 username display
This is short-term fix. It prevents setting of provider name,
that causes failing image push in imagefactory.

https://bugzilla.redhat.com/show_bug.cgi?id=847798

Signed-off-by: Tzu-Mainn Chen <tzumainn@redhat.com>
BZ 847798 - fix provider names in tests

Signed-off-by: Tzu-Mainn Chen <tzumainn@redhat.com>
BZ 811852 Exception when tried to create a new image from wrong URL(rev.)

Moved the method 'import_xml_from_url' from DeployablesController
to ApplicationController, with fix for "undefined method `request_uri'".
ApplicationController's one is applied for ImagesController#edit_xml also.

https://bugzilla.redhat.com/show_bug.cgi?id=811852
Improved starting of RHEVM instances (rev. 2)

RHEVM instances goes to stopped state after creating and they need
to be started explicitly. This patch improves check if explicit
start request should be sent.

It also extends stopping of RHEVM instances - it's possible that
RHEVM isntances freeze in shutting_down state on provider side
if development tools are not installed inside VM. In such case,
another 'stop' request is sent to the instance.
Translated deployment event messages
Changed Event.description column to text

It turned out that sometimes is error message quite long (if a match is not found),
in such case is the message saved into description column.
Fixed checking if there is a queued start request when doing rollback
Minor text changes.

Signed-off-by: Matt Wagner <matt.wagner@redhat.com>
Trivial test fix to match string change

6d851630ccd70c7370f462f011a84c1739560971 introduces a text change;
one test (wrongly) checks for that string and needs revision.
Fixed cucumber tests

This patch fixes cucumber tests which were failing if iwhd was down
(introduced my older patch 2628b0019825eae76439e05e1b000015f50b7b13)
Fixed rspec tests

This patch fixes iwhd tests which were failing if iwhd was down
(introduced my older patch 2628b0019825eae76439e05e1b000015f50b7b13)