Moving target assignment to markup instead of JS
Site settings refactor and user's sites list

* Refactor for easier reuse on server and client sides.
* User’s sites list on the currently being accessed WP instance (be it
multi or single site). Note: this will differ from the list the app
uses, which will also include other wp instances’ URLs.