added retrieving of the Code Dictionary in JSON format

added functions for handling code selection in memory
added JSONCodeDictionary.java
relocated annotate.html to JSONCodeDictionary/