Bee conditional

1) Moved bee blocks into own file
2) Moved bee API calls into Bee.js
3) Add some if/while blocks, and exposed some new API functions.
3 space indent