Added static paths to PathHelper and using them in wp templates.

https://www.openproject.org/work_packages/13603
https://www.openproject.org/work_packages/13697
https://www.openproject.org/work_packages/13600
https://www.openproject.org/work_packages/13651 (This PR doesn't directly fix this but it does fix the watchers tab in general so you will be able to see that it has been fixed)

@myabc I played a bit with your idea of using URI templating in PathHelper but am not sure if it would make the code that much cleaner. Maybe if you had some specific ideas you could let me know as to me it seems like we'd end up in a similar situation of building up URI directory strings and then feeding them into URI constructors and not really using and of the other URI functionality after that.
since the appBasePath is not supposed to change on ``window`` we should be able to just define this as a variable like

`` staticBase: window.appBasePath ? window.appBasePath : ''; ``,

which would look more convenient with regards to the other prefix definitions