To the first problem, I found a solution with my boss (who has no knowledge in programming at all):
Use the Shortcode API.
That way he can add the function that I mentioned in problem 2 in every single page he wants, without having to overcome a lot of problems.
However, now problem 2 is very crucial. I still do not seem to have a solution for that.