BUG:
Force-docking a station to a ship results in a portable station, allowing homebase protection (invincible ship), one entity claiming multiple systems, factories aboard ships, shops aboard ship (repairing armor from the shop, as well as bumping trade guild ships to restock it [free items])
To achieve this, you need a tool to convert entities to other states (ship, station, asteroid)
I used http://starmadedock.net/content/blueprinttype-converter.1010/ to achieve this.
First, create a ship (can just a core) and dock it to the ship.
Save the parent ship as a blueprint
use the conversion tool to change ONLY the docked entity to a station.
load the modified blueprint and you'll notice a vivid blue 'docked' entity. This is the docked station.
This station moves with the ship, you can build on it as if it is a station.
Adding a faction module, making it a homebase and claiming systems are all possible with this ship/station hybrid.