Implementing momentjs

partially resolves https://github.com/owncloud/core/issues/10220 will complete in separate PR as moving other methods are not relevant to moment.js

Will squish after review
Can you add a JSDoc comment to this, please?