Remove singletone pattern, use class instead

@redonkulus @lingyan @Vijar 
Can use `[options.pathPrefix='/api']`syntax to indicate this option is optional and its default value.