upgrade of systemvm templates
README: Give CloudStack its much deserved readme file

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit d753e765f7ca848e4cc79d25ba5fa986b8b63522)

Conflicts:
	README.md
README: Fix links for viewing on Github

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit fc7b2baba33ee990c5edc70503d01acf55e6a973)
remove update to 4.3 templates for 4.4
CLOUDSTACK-7257: Missing LXC mappings, reuse KVM mappings
Merge remote-tracking branch 'origin/hotfix/4.4-7257' into 4.4
Merge remote-tracking branch 'origin/hotfix/4.4-svm-upgrade' into 4.4
README: some sections from the prior version copied back in.

see commit 3433eb7c093289ae81e99a3bdf8fe3038aa752a3
Merge branch 'hotfix/4.4-readme' into 4.4
Adding keytool to the list of sudo commands for cloud user to allow certificate creation during startup

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
(cherry picked from commit 451e2ab851518832f44c77830347d9bbcb5da13f)
CLOUDSTACK-7129: Non-admin user can use deleteNetwork with shared
networks

fix ensures only admin users can delete shared network

(cherry picked from commit 2f293f42d567b1218cb083250707eeffc5324dc3)
CLOUDSTACK-6323: Change getUser API arg to userapikey

By default the getUser API picks apikey arg from HTTP request to return the
User object with that api key. We use apikey in the request, so it would return
the same user calling the API. This commit uses the USER_API_KEY in the API
annotation instead.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
CLOUDSTACK-6360: Fix JDK paths in ubuntu packaging init scripts, don't use 1.6

Since we've agreed to use JDK/JRE 1.7, this enforces that for Ubuntu builds
- this fix remove usage of 1.6 paths in JDK_DIR for cloud-{agent, management, usage}.
- adds oracle jdk 1.7 path (in case a user is using that)
- adds mysql-connector-java path to CLASSPATH for usage server
- adds libmysql-java pkg dependency (tested and available for precise and trusty)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
CLOUDSTACK-6360: pick setJavaHome from 4.3 and master for 4.4 branch

A JAVA_HOME finder method was implemented by Rajani and got into master and 4.3
but not 4.4: https://reviews.apache.org/r/22721/

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
did git change it output format since this script was made?
add build_date for trouble shooting user-version issues
appliance: change the way we find git branch in build.sh

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
appliance: use the right way to get git branch name

Taken from Junio C Hamano's blog [1], git's maintainer, he must not be wrong :)

[1] http://git-blame.blogspot.ch/2013/06/checking-current-branch-programatically.html

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
appliance: fix branch finding method from e16414e even Junio can be wrong

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
CLOUDSTACK-6695: Added support to the UI for uploading a chain of certificates

In the "SSL Certificate" dialog we added:
- new field for the root certificate;
- a button to add intermediate certificates if necessary; when this is pressed, a new field, called "Intermediate certificate 1" is added; pressed again, "Intermediate certificate 2" field is added, and so on.

We upload the certificates in order: first the root certificate (with id=1), then the intermediate certificates (with id=2,3,..) and finally the server certificate.
When uploading a certificate, we wait for the upload to be completed successfully and only then we proceed to uploading the next one. If one fails, we report failure and don't continue with the remaining.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>