Fix JavaDoc copy-paste mistake
Rename OwnIdentitiesPage to MyIdentityPage:
- Currently, the page displays a list of all the users identities along with some information (last insert date, etc.) and operations (delete, introduce, etc.). To conform with the new style of the web interface of having the user log in as a certain OwnIdentity, this should be changed to only display stuff for the currently logged in identity. To prepare for that, this commit renames the page to MyIdentityPage.
- We use "My identity" instead of "Own identity" because this is better English and easier to understand. While the rest of the source code shall continue to use "OwnIdentity", the web interface is an exception: To ease development, the filenames should be similar to what is shown in the l10n at the web interface - and the web interface should say "My Identity".
- L10n files are also adapted
- JavaDoc of the page is improved a bit
Rename OwnIdentitiesToadlet to MyIdentityToadlet to be coherent with the previous commit:
- That Toadlet was being used for showing OwnIdentitiesPage which has been renamed to MyIdentityPage in the previous commit.
JavaDoc
Fix two more remaining places where to rename OwnIdentitiesPage to MyIdentityPage
- Good thing I also searched the code for OwnIdentities, not only for OwnIdentitiesPage...
Adapt ErrorPage to display a proper message for UnknownIdentityException:
- This allows pages which require a session (= a logged in OwnIdentity) to throw UnkownIdentityException if the identity has been deleted meanwhile
Fix hopefully the last remaining places where to rename OwnIdentitiesPage to MyIdentityPage. Sorry.
Be more verbose in the ErrorPage explanation of UnknownIdentityException:
- Explain possible causes
- Provide the ID for debugging purposes as this shouldn't happen regularly
- Tell the user that the ID is private information
Adapt MyIdentityPage to log-in style web interface:
- Re-use "wot" & "mLoggedInOwnIdentityID" member variables of parent class instead of duplicating session management code
- As a conclusion, don't have a code path for displaying the page without a selected OwnIdentity anymore - someone is always logged in!
- Remove the big synchronization block upon the WebOfTrust. This branch is also about getting rid of synchronization on the web interface for faster rendering. Notice: This does not remove all synchronization in this page, we still might use functions which synchronize.
- Instead of displaying a table with all OwnIdentity in the database, only display the logged in one.
- Recycle the code which rendered the table by removing the part which loops over all identities so it only displays the logged in identity. 
- As this recycling is ugly, JavaDoc a TODO to replace it with a proper single-identity layout. Notice: We haven't had a WOT release for a very long time, so to speed up things I am doing tradeoffs like this one.
Add FIXME of removing code duplication
Resolve synchronization TODO
Don't swallow Excaptions, display an error message
Use existing member variable instead of passed-through stuff
Adapt IntroduceIdentityPage to use session cookies
- This is part of resolving https://bugs.freenetproject.org/view.php?id=6067
Resolve FIXME of using interfaces instead of hardcoding URIs:
- Notice: This changes some of the form names which is a safe thing to do - AFAIK they are merely cosmetic. And the forms still work for me.
- The createIdentityURI wasn't being used anymore, can be removed.
- For being really safe, the URI construction mechanism in IdentityPage HAS to be that complex :| See http://stackoverflow.com/questions/10330138/java-net-uri-resolve-against-only-query-string
Remove unused "page" form variable from POST requests:
This is ancient code from back when page POST was handled like that: https://github.com/freenet/plugin-WoT-staging/blob/7080cd0315726adfb553ccd5b6d2159169b14ea5/ui/web/WebInterface.java#L88
We now have Toadlets which are accessed by URI, so we don't need the "page" variable anymore.
Indent.
Merge branch 'master' into web-interface-revamp
Copy-paste class CreateIdentityWizard from Freetalk, revision 266b93b4cac438e36be736c8ecfe5b38f0c6a61c (= latest):
- Absolutely unmodified copy-paste, the following commits will adapt it to WOT.
- I tried to use some black magic to make git import the code from the Freetalk repository while preserving the commit history, but it turned out to be too much hassle for just one file.
Copy-paste German CreateIdentityWizard l10n from Freetalk, revision dbb186e91c386d71e0552afbc1e3ae30c36c389b (= latest):
- The following commits will adapt it to WOT. I am German so I can do that.
- I tried to use some black magic to make git import the code from the Freetalk repository while preserving the commit history, but it turned out to be too much hassle for just one file.