Check if encoded user credential may get truncated

In some deployments, user passwords are generated by other
authentication infrastructures where the length of the Base64 encoded
credentials is longer than the DB limit.

This patch checks if the encoded credential might be truncated when
it is generated and fail early during stack creation, or else it will
cause troubles later on when operating the stack.

Change-Id: I901b9e39dd0d394991520fea1f527e250c2c9680
Partial-Bug: 1386213
Fixed typo in remote stack resource

This patch fixes a typo in error message in RemoteStack code.

Change-Id: I9389664743c55385c78dfc3ba43afc14e6ae8c57
Merge "Fixed typo in remote stack resource"
Merge "Check if encoded user credential may get truncated"