diff --git a/lib/appframework/dependencyinjection/dicontainer.php b/lib/appframework/dependencyinjection/dicontainer.php
index 43f6eee29b03a477e65d487c8a1db7d910801db9..2ef885d7b2ca7f628807ae5fc7ceaf199d4cdac9 100644
--- a/lib/appframework/dependencyinjection/dicontainer.php
+++ b/lib/appframework/dependencyinjection/dicontainer.php
@@ -132,7 +132,7 @@ class DIContainer extends SimpleContainer implements IAppContainer{
 	}
 
 	/**
-	 * @return \OCP\Core\IServerContainer
+	 * @return \OCP\IServerContainer
 	 */
 	function getServer()
 	{
diff --git a/lib/appframework/http/request.php b/lib/appframework/http/request.php
index ab72a8db697fb6d658e3d1ee464f0c7cc6875f0e..4f1775182a1e89da5b23d5656a7644d1dbdc3357 100644
--- a/lib/appframework/http/request.php
+++ b/lib/appframework/http/request.php
@@ -22,7 +22,7 @@
 
 namespace OC\AppFramework\Http;
 
-use OCP\Core\IRequest;
+use OCP\IRequest;
 
 /**
  * Class for accessing variables in the request.
diff --git a/lib/appframework/utility/simplecontainer.php b/lib/appframework/utility/simplecontainer.php
index 04b6cd727b8f6a4876242fa904df0e6f7a2cfd7c..a51ace83a3759fb73b3f75b8455301ba5075f549 100644
--- a/lib/appframework/utility/simplecontainer.php
+++ b/lib/appframework/utility/simplecontainer.php
@@ -10,7 +10,7 @@ require_once __DIR__ . '/../../../3rdparty/Pimple/Pimple.php';
  *
  * SimpleContainer is a simple implementation of IContainer on basis of \Pimple
  */
-class SimpleContainer extends \Pimple implements \OCP\Core\IContainer {
+class SimpleContainer extends \Pimple implements \OCP\IContainer {
 
 	/**
 	 * @param string $name name of the service to query for
diff --git a/lib/contactsmanager.php b/lib/contactsmanager.php
index 59c413ec03b3da4c573ec26204cf80d0ad6b7a40..fc6745b450506b063afe027cb8f3578d2e53093d 100644
--- a/lib/contactsmanager.php
+++ b/lib/contactsmanager.php
@@ -22,7 +22,7 @@
 
 namespace OC {
 
-	class ContactsManager implements \OCP\Core\Contacts\IManager {
+	class ContactsManager implements \OCP\Contacts\IManager {
 
 		/**
 		 * This function is used to search and find contacts within the users address books.
diff --git a/lib/public/appframework/iappcontainer.php b/lib/public/appframework/iappcontainer.php
index db909241e5dcce73167e785840b8eed1a6d5158e..c8f6229dd9ee23184f7f710e9d2c827bb6fc84f8 100644
--- a/lib/public/appframework/iappcontainer.php
+++ b/lib/public/appframework/iappcontainer.php
@@ -23,7 +23,7 @@
 namespace OCP\AppFramework;
 
 use OCP\AppFramework\IApi;
-use OCP\Core\IContainer;
+use OCP\IContainer;
 
 /**
  * Class IAppContainer
@@ -39,7 +39,7 @@ interface IAppContainer extends IContainer{
 	function getCoreApi();
 
 	/**
-	 * @return \OCP\Core\IServerContainer
+	 * @return \OCP\IServerContainer
 	 */
 	function getServer();
 }
diff --git a/lib/public/core/contacts/imanager.php b/lib/public/contacts/imanager.php
similarity index 99%
rename from lib/public/core/contacts/imanager.php
rename to lib/public/contacts/imanager.php
index e8bb7bfd8e46355938ad6c98ecf1a7106e528fb1..3bfbca7be501ecee5b502277a3ae74294e2c6315 100644
--- a/lib/public/core/contacts/imanager.php
+++ b/lib/public/contacts/imanager.php
@@ -28,7 +28,7 @@
 
 // use OCP namespace for all classes that are considered public.
 // This means that they should be used by apps instead of the internal ownCloud classes
-namespace OCP\Core\Contacts {
+namespace OCP\Contacts {
 
 	/**
 	 * This class provides access to the contacts app. Use this class exclusively if you want to access contacts.
diff --git a/lib/public/core/icontainer.php b/lib/public/icontainer.php
similarity index 97%
rename from lib/public/core/icontainer.php
rename to lib/public/icontainer.php
index 88ebc6cf64dd9604d7d4906d023c2576f23551b8..d43c1c90f11dbca405f259a442a3d829cfbae509 100644
--- a/lib/public/core/icontainer.php
+++ b/lib/public/icontainer.php
@@ -20,14 +20,14 @@
  *
  */
 
-namespace OCP\Core;
+namespace OCP;
 
 /**
  * Class IContainer
  *
  * IContainer is the basic interface to be used for any internal dependency injection mechanism
  *
- * @package OCP\Core
+ * @package OCP
  */
 interface IContainer {
 
diff --git a/lib/public/core/irequest.php b/lib/public/irequest.php
similarity index 99%
rename from lib/public/core/irequest.php
rename to lib/public/irequest.php
index be60978a3c3f9cb4a2192197ef605471d4ff2e51..cd39855950bc875324dbb8e5e8dbf782829c016c 100644
--- a/lib/public/core/irequest.php
+++ b/lib/public/irequest.php
@@ -20,7 +20,7 @@
  *
  */
 
-namespace OCP\Core;
+namespace OCP;
 
 
 interface IRequest {
diff --git a/lib/public/core/iservercontainer.php b/lib/public/iservercontainer.php
similarity index 92%
rename from lib/public/core/iservercontainer.php
rename to lib/public/iservercontainer.php
index 0517cc53e09b9ccb5b42eb12f570184d2923b667..5f5b9677549587b836000cd699127a291ed95476 100644
--- a/lib/public/core/iservercontainer.php
+++ b/lib/public/iservercontainer.php
@@ -20,12 +20,12 @@
  *
  */
 
-namespace OCP\Core;
+namespace OCP;
 
 
 /**
  * Class IServerContainer
- * @package OCP\Core
+ * @package OCP
  *
  * This container holds all ownCloud services
  */
@@ -35,7 +35,7 @@ interface IServerContainer {
 	 * The contacts manager will act as a broker between consumers for contacts information and
 	 * providers which actual deliver the contact information.
 	 *
-	 * @return \OCP\Core\Contacts\IManager
+	 * @return \OCP\Contacts\IManager
 	 */
 	function getContactsManager();
 
@@ -44,7 +44,7 @@ interface IServerContainer {
 	 * is returned from this method.
 	 * In case the current execution was not initiated by a web request null is returned
 	 *
-	 * @return \OCP\Core\IRequest|null
+	 * @return \OCP\IRequest|null
 	 */
 	function getRequest();
 
diff --git a/lib/server.php b/lib/server.php
index 72c82efe16bc2b350eb5f64e866640a278306c9c..ad955bf5c655062cf39a23d378c5f79b459ab013 100644
--- a/lib/server.php
+++ b/lib/server.php
@@ -3,7 +3,7 @@
 namespace OC;
 
 use OC\AppFramework\Utility\SimpleContainer;
-use OCP\Core\IServerContainer;
+use OCP\IServerContainer;
 
 /**
  * Class Server
@@ -20,9 +20,21 @@ class Server extends SimpleContainer implements IServerContainer {
 	}
 
 	/**
-	 * @return \OCP\Core\Contacts\IManager
+	 * @return \OCP\Contacts\IManager
 	 */
 	function getContactsManager() {
 		return $this->query('ContactsManager');
 	}
+
+	/**
+	 * The current request object holding all information about the request currently being processed
+	 * is returned from this method.
+	 * In case the current execution was not initiated by a web request null is returned
+	 *
+	 * @return \OCP\IRequest|null
+	 */
+	function getRequest()
+	{
+		return $this->query('Request');
+	}
 }