Added user status check.

Added an additional check for the user status, so no blocked and not
activated users can not access the owncloud site anylonger.
Added authentification check.

http://doc.owncloud.com/server/4.5/developer_manual/security.html
Replaced ==

== replaced with ===
http://doc.owncloud.com/server/5.0/developer_manual/security.html
Removed all echos

http://doc.owncloud.com/server/5.0/developer_manual/security.html
Added CSRF check.
Added token
Removed echo
Prepaired new version with a memo.
Removed unused variables and fixed userList bug
Added support for not standard database ports
Merge pull request #1 from ArneMR/owncloud-user_redmine2

Added support for different ports
Merge pull request #5 from ArneMR/master

Fixed security issue with invalid logins. Tested under owncloud 5.0.5 with redmine 2.3