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