Security added

Some security measures added to the project, http basic authentication
and https support. This to work needs changes in the wildfly
configuration as well.