When I mentioned to consider the sets of morphisms as primitive, I meant only : in a first draft of consideration, until fixing a definition of the structures that the morphisms will preserve. Also, while not strictly necessary, I generally admit that the objects in the category are given as sets (with structures to be introduced later), and the morphisms are maps between these sets.
Finally, the only sets of morphisms I take as primitive are the sets M0=Mor(K,M) and/or M*=Mor(M,K) with fixed K, which I take to play the roles of structures for M.
The condition of "preserving the structure" is thus defined as follows:
Putting on each M the structure M0, A function f from M to N is said to preserve that structure if тИАx тИИ M0, foxтИИN0.
Example : M is an affine space and M0 is the set of all affine maps from R to M.
This condition on f means that f preserves every operation of barycenter between 2 points with any coefficients (because the barycenter of points x and y with coefficients (1-u) and u is the image of u by the unique affine map from R to M which sends 0 to x and 1 to y), so that it is an affine map, mapping every straight line into a straight line.
Now if we put on each M the dual structure M*, that is the notion of affine function with real values, the preservation condition for this structure by a map f from M to N says : тИАy тИИ N*, yofтИИM*, that is, the pullback of an affine form is an affine form. Then, since the preimage of a singleton by an affine form is either an hyperplane or the empty set or the whole space, this directly implies that the preimage of an hyperplane by such a preserving function, is either an hyperplane, the empty set or the whole space. The advantage here is that morphisms so defined between infinite dimensional topological affine spaces are automatically continuous, a condition which the algebraic definition by barycenters does not ensure (while both concepts of morphism are equivalent in finite dimensional spaces).
The very same tools can as well define the structure of vector space (with fewer axioms than usual by taking the dual space as primitive), topological spaces with the particular case of topological manifolds, then Lipschitz structures on topological manifolds, and also differential manifolds with whatever degree of smoothness you choose.
It is very simple to introduce the notion of measure on a topological manifold M : take M* the vector space of continuous functions with real values, then the space of measures on M is the vector space of linear forms on M* that is "generated by M", i.e. the set of limits of sequences of linear combinations of elements of M in the dual of M*. Now if you take as M a differential manifold and M* the set of smooth functions on M, then what you get in this construction (closed vector space generated by M) is the space of distributions on M.
I do not need to check your book to know that you define continuous functions as functions f such that the image of any line with endpoints x and y either contains a line with endpoints f(x) and f(y), or f(x)=f(y); and that f is continuous at a point x if for any line with endpoint x, either f is constant near x on this line or the image by f of this line contains a line with endpoint f(x). So it is indeed less straightforward than with the general tool I told you, where (in the direct version) the condition implies that the direct image of any figure of some kind in M (conceived as the direct image of K by some morphism from K to M) is already (instead of : contains) that kind of figure, while, in the dual version, the condition implies that the preimage of any figure of some kind is a figure of that kind.
I see some differences with usual topological concepts, which you did not specify in your essay.
For example, in the set of (x,y)тИИR2 such that (y=0тЙдx) or (0 < y тЙд x and 1/x is an integer), the line (y=0) is a neighborhood of (0,0) according to your definition but not in the standard topological definition, where any neighborhood of (0,0) in this set must contain the whole subset of points with x smaller than some positive value. Does your definition of "neighborhood" fit your intuitive idea of this concept in this case ? Note that if, instead of only admitting lines as subsets, you worked with the tools I gave you, allowing squeezed lines, defined as continuous maps from a totally ordered set into the space but not required to be an embedding, then the resulting concept of neighborhood would coincide with the traditional one in this particular case.
I do see a specific problem with your concept of neighborhood : according to the classical definitions, if f is continuous in x then the preimage of a neighborhood of f(x) by f, is a neighborhood of x. I can imagine a continuous idempotent function that squeezes {(x,y) | 0 тЙд y тЙд x} onto the above set, however the preimage of the neighborhood (y=0) of (0,0) by this map is not a neighborhood of (0,0).
Another difference, is that your topology does not admit any Cantor space, unless you give it a very different topology that makes it... connected, and thus no more feeling like a Cantor space in the usual topological sense.