Added missing npm fields.
User middleware and some documentation.