Updates to Locking API

Added asJSON method to Catalogue and Forms API