Added registration through api.
Merge pull request #7 from vdim/avionicus

Added registration through api.