On a general implementation of h- and p-adaptive curl-conforming finite elements. (June 2019)